Daniel Mack f375fc520d usb: ehci-mxc: check for pdata before dereferencing
Commit 7e8d5cd93fac ("USB: Add EHCI support for MX27 and MX31 based
boards") introduced code that could potentially lead to a NULL pointer
dereference on driver removal.

Fix this by checking for the value of pdata before dereferencing it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org> # 2.6.33+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-23 10:46:03 -07:00
..
2012-11-21 13:27:17 -08:00
2013-07-31 17:53:50 -07:00
2013-07-31 17:53:50 -07:00
2013-07-31 17:53:50 -07:00
2013-08-12 13:29:54 -05:00
2013-08-13 15:28:01 -07:00
2012-11-21 13:27:17 -08:00
2013-05-30 21:34:31 +09:00
2012-02-13 14:32:34 -08:00
2013-07-31 17:53:50 -07:00
2013-07-31 17:53:50 -07:00
2013-07-31 17:53:50 -07:00
2012-05-01 21:33:37 -07:00
2013-07-31 17:53:50 -07:00
2012-11-21 13:27:16 -08:00
2012-11-21 13:27:16 -08:00
2013-05-27 11:00:52 +09:00
2013-05-27 11:00:52 +09:00
2013-07-29 07:43:16 -07:00
2013-07-31 17:53:50 -07:00
2012-11-21 13:27:17 -08:00
2013-07-31 17:53:50 -07:00
2013-01-24 13:59:26 -08:00
2013-01-25 12:41:02 -08:00
2013-01-24 13:42:09 -08:00