ceph: Use kcalloc for allocating multiple elements
[ Upstream commit aa1d6272 ] Prefer using kcalloc(a, b) over kzalloc(a * b) as this improves semantics since kcalloc is intended for allocating an array of memory. Signed-off-by:Kenneth Lee <klee33@uw.edu> Reviewed-by:
Xiubo Li <xiubli@redhat.com> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com> Stable-dep-of: 5bd76b8d ("ceph: fix NULL pointer dereference for req->r_session") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment