usb: gadget: amd5536udc: avoid NULL pointer dereference in udc_pci_probe()
authorXi Wang <xi.wang@gmail.com>
Thu, 15 Nov 2012 09:21:01 +0000 (04:21 -0500)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Dec 2012 10:03:55 +0000 (12:03 +0200)
commit25e14c1fcce5c66b0d2d5e35fad35d044dc320ae
treea4741eb3db959b34d74fd29457fa459ff1faac7e
parentdeeeb9ee1ed5b06864f530c6123976209badd489
usb: gadget: amd5536udc: avoid NULL pointer dereference in udc_pci_probe()

dev->pdev is NULL before `dev->pdev = pdev'; use pdev instead.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/amd5536udc.c