From 43ecc0bba66fa7c455616e69554aeb2af33e0e70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Sun, 10 Sep 2006 23:45:42 +0000 Subject: [PATCH] * from Holger Nelson: Tecra S1 DMI entry Fix stupid copy/paste error --- laptop.h | 9 +++++++++ nbsmi.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/laptop.h b/laptop.h index 8cb77f3..54935f3 100644 --- a/laptop.h +++ b/laptop.h @@ -623,6 +623,15 @@ static struct dmi_system_id omnibook_ids[] __initdata = { }, .driver_data = (void*) TSM40 }, + { + .callback = dmi_matched, + .ident = "Toshiba Tecra S1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TECRA S1"), + }, + .driver_data = (void*) TSM40 + }, { .callback = dmi_matched, .ident = "Toshiba Equium A110", diff --git a/nbsmi.c b/nbsmi.c index aabc251..3407ea7 100644 --- a/nbsmi.c +++ b/nbsmi.c @@ -197,7 +197,7 @@ static int nbsmi_smi_read_command(const struct omnibook_operation *io_op, u8 *da } outputbuffer = kcalloc(BUFFER_SIZE,sizeof(u8),GFP_KERNEL); - if(!inputbuffer) { + if(!outputbuffer) { retval = -ENOMEM; goto error2; } @@ -239,7 +239,7 @@ static int nbsmi_smi_write_command(const struct omnibook_operation *io_op, u8 da } outputbuffer = kcalloc(BUFFER_SIZE,sizeof(u8),GFP_KERNEL); - if(!inputbuffer) { + if(!outputbuffer) { retval = -ENOMEM; goto error2; } -- 2.43.5