Re: [PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-15 Thread Jon Hunter
On 14/07/2020 10:32, Thierry Reding wrote: > On Sun, Jul 12, 2020 at 11:28:37AM +0100, Jon Hunter wrote: >> After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") >> was added system suspend started failing on Tegra186. The kernel log >> showed that the Tegra XHCI driver was cra

Re: [PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-14 Thread Thierry Reding
On Sun, Jul 12, 2020 at 11:28:37AM +0100, Jon Hunter wrote: > After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") > was added system suspend started failing on Tegra186. The kernel log > showed that the Tegra XHCI driver was crashing on entry to suspend when > attemptin the sav

[PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-12 Thread Jon Hunter
After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") was added system suspend started failing on Tegra186. The kernel log showed that the Tegra XHCI driver was crashing on entry to suspend when attemptin the save the USB context. The problem is caused because we are trying to al