usb: gadget: function: f_rndis: socket buffer may be NULL
authorPeter Chen <peter.chen@nxp.com>
Thu, 11 Aug 2016 07:51:46 +0000 (15:51 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 22 Aug 2016 07:45:12 +0000 (10:45 +0300)
commit80d1642d7640ef00d8823f17a529785331aceb96
treef699672076627023088f4d6c4f490aa01a80452e
parent70237dc8efd092b93b40dc2eba812d66a5d65cb1
usb: gadget: function: f_rndis: socket buffer may be NULL

In eth_start_xmit, the socket buffer may be NULL. So, add NULL pointer
check at .wrap API.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_rndis.c