From: Dan Carpenter Date: Mon, 20 Dec 2010 18:43:02 +0000 (-0800) Subject: typhoon: memory corruption in typhoon_get_drvinfo() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=914e5cea14b2e4651cdb0707e0936b43246deda0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git typhoon: memory corruption in typhoon_get_drvinfo() info->version only has space for 32 characters but my UTS_RELEASE is "2.6.37-rc6-next-20101217-05817-ge935fc8-dirty" so it doesn't fit. This is supposed to be the version of the driver, not the kernel version. This driver doesn't have a version so lets just leave it blank. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 5b83c3f35f47..a3c46f6a15e7 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c @@ -1004,7 +1004,6 @@ typhoon_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) } strcpy(info->driver, KBUILD_MODNAME); - strcpy(info->version, UTS_RELEASE); strcpy(info->bus_info, pci_name(pci_dev)); }