host: uhci-platform: fix NULL pointer dereference on resource
authorVarka Bhadram <varkabhadram@gmail.com>
Tue, 4 Nov 2014 01:47:10 +0000 (07:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:00:51 +0000 (09:00 -0800)
commit6827f7e3113ae11689546404f557fbfdba20aa50
treed31b1358ffaa78b692ba7ee9f0d63209f5b4f65f
parent55dc68c012bf056880c03d9f6eb34c00880f9e88
host: uhci-platform: fix NULL pointer dereference on resource

Fix in accessing NULL if resource didn't get.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-platform.c