lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 06 May 2010 07:41:55 +0200 From: peter@...e.net To: Rahul Chaturvedi <rkc@...omium.org> Cc: linux-kernel@...r.kernel.org, msb@...omium.org Subject: Re: [PATCH] CHROMIUM: acerhdf: fix bug when running on Qemu Quoting Rahul Chaturvedi <rkc@...omium.org>: > Driver didn't verify the pointers in which it got product information > back from DMI; on QEMU one of the pointers came back null, > which made the driver crash and subsequently caused a kernel panic. > > Signed-off-by: Rahul Chaturvedi <rkc@...omium.org> > --- > drivers/platform/x86/acerhdf.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c > index 4d922e4..e8ee3b2 100644 > --- a/drivers/platform/x86/acerhdf.c > +++ b/drivers/platform/x86/acerhdf.c > @@ -500,6 +500,11 @@ static int acerhdf_check_hardware(void) > product = dmi_get_system_info(DMI_PRODUCT_NAME); > > > + if (!vendor || !version || !product) { > + pr_err("error getting hardware information"); > + return -EINVAL; > + } > + > pr_info("Acer Aspire One Fan driver, v.%s\n", DRV_VER); > > if (force_bios[0]) { > -- > 1.7.0.1 > > Acked-by: Peter Feuerer <peter@...e.net> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists