aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.h
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2020-06-29 08:50:06 +0200
committerGreg Kroah-Hartman <[email protected]>2020-07-02 14:36:02 +0200
commitcad064f1bd5237481d15b72b481809e3f0907dd9 (patch)
treea86ec4ec838e7efb4a6a671586db5e2e458e9235 /drivers/usb/cdns3/cdns3-trace.h
parent67dd0772396905a108c37202d4a5949ab69131a0 (diff)
devres: handle zero size in devm_kmalloc()
Make devm_kmalloc() behave similarly to non-managed kmalloc(): return ZERO_SIZE_PTR when requested size is 0. Update devm_kfree() to handle this case. Signed-off-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions