diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-07-02 22:51:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-04 12:34:38 +0200 |
commit | c884e3249f753dcef7a2b2023541ac1dc46b318e (patch) | |
tree | fc8377fee1d9694dbc7174a87eb8a0156f2d721f /rust/helpers/workqueue.c | |
parent | 23c6859677066fa3d6bb3672703636dd673cb5dd (diff) |
devres: Fix devm_krealloc() wasting memory
Driver API devm_krealloc() calls alloc_dr() with wrong argument
@total_new_size, so causes more memory to be allocated than required
fix this memory waste by using @new_size as the argument for alloc_dr().
Fixes: f82485722e5d ("devres: provide devm_krealloc()")
Cc: stable@vger.kernel.org
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/1719931914-19035-2-git-send-email-quic_zijuhu@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions