diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-01-25 13:01:29 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-02-03 20:03:40 +0200 |
commit | 79c5623f1cb85f33403eb9f1e45124e9f56181f8 (patch) | |
tree | d4e1dbf0104ca7df3e5cccef69b85e97a8e41b5c /drivers/usb/c67x00/c67x00-hcd.h | |
parent | 63b121e3a3167df9fdb99633fd1c840c841b07b9 (diff) |
usb: musb: ux500: Fix NULL pointer dereference at system PM
The commit 7d32cdef5356 ("usb: musb: fail with error when no DMA
controller set"), caused the core platform driver to correctly return an
error code when fail probing.
Unfurtante it also caused bug for a NULL pointer dereference, during
system suspend for the ux500 driver. The reason is a lacking validation
of the corresponding ->driver_data pointer, which won't be set when the
musb core driver fails to probe (or haven't yet been probed).
Fixes: 7d32cdef5356 ("usb: musb: fail with error when no DMA...")
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/c67x00/c67x00-hcd.h')
0 files changed, 0 insertions, 0 deletions