]> git.baikalelectronics.ru Git - uboot.git/commit
usb: musb-new: sunxi: Fix null pointer access
authorStefan Mavrodiev <stefan@olimex.com>
Wed, 5 Dec 2018 12:49:44 +0000 (14:49 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:10 +0000 (17:59 +0100)
commita12f9f99e9c0a6762d3e2fa0edc53eedfdda953f
treeb92d103424eb34926392333269f1c5629562ada7
parentad3282dfa4f560c9069cc09c3286b2e1f3faffe3
usb: musb-new: sunxi: Fix null pointer access

When the device is in peripheral mode there is no
struct usb_bus_priv allocated pointer, as the uclass driver
("usb_dev_generic") doesn't call per_device_auto_alloc_size.

This results in writing to the internal SDRAM at
priv->desc_before_addr = true;

Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
drivers/usb/musb-new/sunxi.c