usb: gadget: function: f_eem: socket buffer may be NULL
authorPeter Chen <peter.chen@nxp.com>
Thu, 11 Aug 2016 07:51:45 +0000 (15:51 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 22 Aug 2016 07:45:12 +0000 (10:45 +0300)
commit70237dc8efd092b93b40dc2eba812d66a5d65cb1
treea9dba2adcd5250db36cdd56cf47fab49c8aab3dd
parent3295235fd70ed6d594aadee8c892a14f6a4b2d2e
usb: gadget: function: f_eem: 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_eem.c