diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-30 08:54:08 +0100 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2021-08-02 12:25:00 +0300 |
commit | 85b1ebfea2b0d8797266bcc6f04b6cc87e38290a (patch) | |
tree | e1288a92391c0aaefe63e6dd40192cd3b975dbed /mm/slab_common.c | |
parent | f84f5b6f72e68bbaeb850b58ac167e4a3a47532a (diff) |
interconnect: Fix undersized devress_alloc allocation
The expression sizeof(**ptr) for the void **ptr is just 1 rather than
the size of a pointer. Fix this by using sizeof(*ptr).
Addresses-Coverity: ("Wrong sizeof argument")
Fixes: e145d9a184f2 ("interconnect: Add devm_of_icc_get() as exported API for users")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210730075408.19945-1-colin.king@canonical.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions