usb: chipidea: imx: fix a possible NULL dereference
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 12 Nov 2015 07:43:34 +0000 (08:43 +0100)
committerPeter Chen <peter.chen@freescale.com>
Wed, 18 Nov 2015 07:27:31 +0000 (15:27 +0800)
commit6f51bc340d2a1c71a2409f80f3e60fe2c44e35ae
treebb6567c869fe3efae232e9f48204b9978e938efa
parent090bc267ea1013bbb33778b343b4acd78b9c5d9b
usb: chipidea: imx: fix a possible NULL dereference

of_match_device could return NULL, and so cause a NULL pointer
dereference later.

Reported-by: coverity (CID 1324138)
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/ci_hdrc_imx.c