io_uring: Fix sizeof() mismatch
authorColin Ian King <colin.king@canonical.com>
Mon, 12 Oct 2020 14:03:41 +0000 (15:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:41 +0000 (09:25 -0600)
commit035fbafc7a54b8c7755b3c508b8f3ab6ff3c8d65
tree2f0aa308ff6499f7bc9bcf25ac263bf726c59796
parent071a0578b0ce0b0e543d1e38ee6926b9cc21c198
io_uring: Fix sizeof() mismatch

An incorrect sizeof() is being used, sizeof(file_data->table) is not
correct, it should be sizeof(*file_data->table).

Fixes: 5398ae698525 ("io_uring: clean file_data access in files_register")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c