Commit 8aeea03
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>1 parent 604e8c8 commit 8aeea03
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3810 | 3810 | | |
3811 | 3811 | | |
3812 | 3812 | | |
3813 | | - | |
3814 | 3813 | | |
3815 | 3814 | | |
3816 | 3815 | | |
| |||
3958 | 3957 | | |
3959 | 3958 | | |
3960 | 3959 | | |
3961 | | - | |
3962 | 3960 | | |
3963 | | - | |
3964 | | - | |
| 3961 | + | |
| 3962 | + | |
3965 | 3963 | | |
3966 | 3964 | | |
3967 | 3965 | | |
| |||
0 commit comments