]> git.dujemihanovic.xyz Git - u-boot.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)
commit46a3f276549f3e5720b6e80278cda354c7fa859f
treeb92d103424eb34926392333269f1c5629562ada7
parent771e76515ed5abe7eff73a54ccb0c9ae55f34388
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