From: Felipe Balbi Date: Tue, 29 May 2012 11:36:42 +0000 (+0300) Subject: usb: gadget: omap_udc: remove possiblity of NULL pointer de-reference X-Git-Tag: v3.6-rc1~101^2~53^2~28^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70617db7ad7395498e6bc54c634199bf895426c6;p=pandora-kernel.git usb: gadget: omap_udc: remove possiblity of NULL pointer de-reference when allocating a request, it's better programming practice to make sure we return NULL if allocation failed. This will ensure that, if struct usb_request isn't the first member on our structure, we don't cheat the gadget driver into thinking allocating worked because pointer isn't 0. Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed