projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602d165
)
dm rq: check kthread_run return for .request_fn request-based DM
author
Mike Snitzer
<snitzer@redhat.com>
Wed, 6 Jul 2016 13:06:37 +0000
(09:06 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Wed, 6 Jul 2016 13:06:37 +0000
(09:06 -0400)
Check return value of kthread_run() in dm_old_init_request_queue().
Reported-by: Minfei Huang <mnghuan@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-rq.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-rq.c
b/drivers/md/dm-rq.c
index
266f7b6
..
aa81539
100644
(file)
--- a/
drivers/md/dm-rq.c
+++ b/
drivers/md/dm-rq.c
@@
-819,6
+819,8
@@
int dm_old_init_request_queue(struct mapped_device *md)
init_kthread_worker(&md->kworker);
md->kworker_task = kthread_run(kthread_worker_fn, &md->kworker,
"kdmwork-%s", dm_device_name(md));
+ if (IS_ERR(md->kworker_task))
+ return PTR_ERR(md->kworker_task);
elv_register_queue(md->queue);