diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-09-05 17:37:12 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-06 09:44:03 +0200 |
commit | 3ff488ab6000f1338684b227c499450317519cc1 (patch) | |
tree | b1f635defa3e4459fb5ff7045c92c6cb7e013acf /drivers/usb/dwc3/dwc3-pci.c | |
parent | usb: renesas_usbhs: fix clearing the {BRDY,BEMP}STS condition (diff) | |
download | linux-3ff488ab6000f1338684b227c499450317519cc1.tar.xz linux-3ff488ab6000f1338684b227c499450317519cc1.zip |
usb: gadget: prevent potenial null pointer dereference on skb->len
An earlier fix partially fixed the null pointer dereference on skb->len
by moving the assignment of len after the check on skb being non-null,
however it failed to remove the erroneous dereference when assigning len.
Correctly fix this by removing the initialisation of len as was
originally intended.
Fixes: 70237dc8efd092 ("usb: gadget: function: f_eem: socket buffer may be NULL")
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions