]> git.baikalelectronics.ru Git - kernel.git/commit
block/bio-integrity: use struct_size() in kmalloc()
authorJackie Liu <liuyun01@kylinos.cn>
Wed, 15 May 2019 08:52:19 +0000 (16:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 May 2019 14:48:48 +0000 (08:48 -0600)
commit9060bb01d647281928c6641c1b37e8e7f06d5402
tree7bd4c85df02657d132a96bbebfcf36c342977977
parentf234c750d3fa3cb8355f832175389cf2c01a2d40
block/bio-integrity: use struct_size() in kmalloc()

Use the new struct_size() helper to keep code simple.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c