]> git.hungrycats.org Git - linux/commit
ceph: use struct_size() helper in __ceph_pool_perm_get()
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 12 Sep 2024 15:39:24 +0000 (17:39 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 3 Oct 2024 07:31:08 +0000 (09:31 +0200)
commit7264745d55422dbe53b5e75ddec622ab5d1290cb
tree92100c1d67f370e91fb4f0e23432352773328aef
parent9852d85ec9d492ebef56dc5f229416c925758edc
ceph: use struct_size() helper in __ceph_pool_perm_get()

Use struct_size() to calculate the number of bytes to be allocated.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c