]> git.baikalelectronics.ru Git - kernel.git/commit
i2o: destroy event queue only when drv->event is set
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 23 May 2007 20:58:05 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:14 +0000 (20:14 -0700)
commit1cf5377c7fb277dad28dc3ff096d696e0aaa5a63
treef4e2903bc010ac88a392dd714cb9986cbfaa4c12
parent8588ea6ecf28aa83defa935cabfdf0980fa2ccba
i2o: destroy event queue only when drv->event is set

i2o_driver_register() initalizes event queue for driver only when
drv->event is set.  So similarly the event queue should be destroyed only
when drv->event is set in the error path.  Otherwise destroy_workqueue()
will called with NULL.

Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/message/i2o/driver.c