can: Fix possible NULL pointer dereference in ems_usb.c
authorHans J. Koch <hjk@linutronix.de>
Wed, 21 Apr 2010 00:18:06 +0000 (00:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2010 23:14:51 +0000 (16:14 -0700)
commit1c0b28b1ee90261a0a27194e6684dd2837785064
treee5c31e2fc729ad0a6bd8e6291a5fb1f9d1bdf624
parent05d17608a69b3ae653ea5c9857283bef3439c733
can: Fix possible NULL pointer dereference in ems_usb.c

In ems_usb_probe(), a pointer is dereferenced after making sure it is NULL...

This patch replaces netdev->dev.parent with &intf->dev in dev_err() calls to
avoid this.

Signed-off-by: "Hans J. Koch" <hjk@linutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/usb/ems_usb.c