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>
Tue, 13 Oct 2020 21:01:18 +0000 (15:01 -0600)
commit67284d69ce7e6c34664450fe8745bf8ac0b69ebf
tree98632b610af342d77a42555ebadeb7d3d5fd4fa5
parent6ad4bf6ea1609fb539a62f10fca87ddbd53a0315
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