diff options
author | Kees Cook <keescook@chromium.org> | 2022-10-29 00:47:34 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-11-18 09:17:13 -0800 |
commit | 74c8e6bffbe10c4470139496f930c0b0752c85c9 (patch) | |
tree | f6f815615a576b96eed8d849340db29664c24684 /block/blk-flush.c | |
parent | 8abfff25b3e2c8f51049295f86dd257492ac1969 (diff) |
driver core: Add __alloc_size hint to devm allocators
Mark the devm_*alloc()-family of allocations with appropriate
__alloc_size()/__realloc_size() hints so the compiler can attempt to
reason about buffer lengths from allocations.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Nishanth Menon <nm@ti.com>
Cc: Michael Kelley <mikelley@microsoft.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Won Chung <wonchung@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20221029074734.gonna.276-kees@kernel.org
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions