]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: u_ether: fix another dereference after null check
authorHarish Jenny K N <harish_kandiga@mentor.com>
Fri, 9 Sep 2016 09:30:41 +0000 (11:30 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 9 Sep 2016 11:49:02 +0000 (14:49 +0300)
commit79775f441838403be856e06eaab893a3fe9dd7b2
treea6809b94b9d61b4e572e3a229b872bc69aa096f8
parent5387c920372a3aaeb97b8b4721619ca9ff2a82ab
usb: gadget: u_ether: fix another dereference after null check

dev->port_usb is checked for null pointer previously, so dev->port_usb
might be null during no zlp check, fix it by adding null pointer check.

Acked-by: Jim Baxter <jim_baxter@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/u_ether.c