From: Daniel Mack Date: Wed, 21 Aug 2013 09:17:21 +0000 (+0200) Subject: usb: ehci-mxc: check for pdata before dereferencing X-Git-Tag: v3.12-rc1~186^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f375fc520d4df0cd9fcb570f33c103c6c0311f9e;p=pandora-kernel.git 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 Reported-by: Dan Carpenter Cc: stable # 2.6.33+ Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed