mtip32xx: use formatting capability of kthread_create_on_node
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 20 Nov 2015 09:46:49 +0000 (10:46 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 20 Nov 2015 15:46:50 +0000 (08:46 -0700)
commit8aeea03195ee6e33fcb00039c414eabfc37a4eb8
treedfafeb55bdf6ddd18172578165a018966ae2b264
parent604e8c8da8854351496215d269c3fa93859e3fee
mtip32xx: use formatting capability of kthread_create_on_node

kthread_create_on_node takes format+args, so there's no need to do the
pretty-printing in advance. Moreover, "mtip_svc_thd_99" (including its
'\0') only just fits in 16 bytes, so if index could ever go above 99
we'd have a stack buffer overflow.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c