From: Ben Hutchings Date: Fri, 7 Dec 2012 06:17:26 +0000 (+0000) Subject: caif_usb: Check driver name before reading driver state in netdev notifier X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406636340c301b46062b22f94e3815ef767bd6a3;p=pandora-kernel.git caif_usb: Check driver name before reading driver state in netdev notifier In cfusbl_device_notify(), the usbnet and usbdev variables are initialised before the driver name has been checked. In case the device's driver is not cdc_ncm, this may result in reading beyond the end of the netdev private area. Move the initialisation below the driver name check. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed