commit | 4beaec18d37f7d33a83ec435bd36fa29e318174c | [log] [tgz] |
---|---|---|
author | Stefan Mavrodiev <stefan@olimex.com> | Wed Dec 05 14:49:44 2018 +0200 |
committer | Marek Vasut <marex@denx.de> | Fri Dec 14 17:59:10 2018 +0100 |
tree | b92d103424eb34926392333269f1c5629562ada7 | |
parent | c7c07181da031d3d6f2a6b5671ade8a00a7dd957 [diff] |
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>