summaryrefslogtreecommitdiffstats
path: root/drivers/base/attribute_container.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-06-29 08:50:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-02 14:36:02 +0200
commitcad064f1bd5237481d15b72b481809e3f0907dd9 (patch)
treea86ec4ec838e7efb4a6a671586db5e2e458e9235 /drivers/base/attribute_container.c
parentdevice: remove 'extern' attribute from function prototypes in device.h (diff)
downloadlinux-cad064f1bd5237481d15b72b481809e3f0907dd9.tar.xz
linux-cad064f1bd5237481d15b72b481809e3f0907dd9.zip
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 <bgolaszewski@baylibre.com> Link: https://lore.kernel.org/r/20200629065008.27620-5-brgl@bgdev.pl Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/attribute_container.c')
0 files changed, 0 insertions, 0 deletions