GFS2: fix error propagation in init_threads()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 5 Jun 2013 21:29:04 +0000 (01:29 +0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 6 Jun 2013 08:52:29 +0000 (09:52 +0100)
commita9aefd707c65aa5a7945b3f16bd39f314aa8414d
tree5a41e8c469b5d396de1c48627873ce163c53fce6
parentedd2e9acc06f1f32ce9acab442d395bacc6c8d7f
GFS2: fix error propagation in init_threads()

If kthread_run() fails, init_threads() returns
IS_ERR(p) instead of PTR_ERR(p).

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_fstype.c