Commit 00c004c0 authored by Kenneth Lee's avatar Kenneth Lee Committed by Greg Kroah-Hartman
Browse files

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: default avatarKenneth Lee <klee33@uw.edu>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Stable-dep-of: 5bd76b8d ("ceph: fix NULL pointer dereference for req->r_session")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 69263bf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment