]> err.no Git - linux-2.6/commit
ieee1394: nodemgr: fix rwsem recursion
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 6 Sep 2006 17:04:00 +0000 (19:04 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 17 Sep 2006 17:38:14 +0000 (19:38 +0200)
commit9b516010863195ba7db061233a3eeffe779130e8
tree90e2b8a96d8010d350f2a62f676aab0dc6d55a76
parentb809289df06ff9453c1b19df74ea83aba311dfc6
ieee1394: nodemgr: fix rwsem recursion

nodemgr_update_pdrv grabbed an rw semaphore (as reader) which was
already taken by its caller's caller, nodemgr_probe_ne (as reader too).
Reported by Miles Lane, call path pointed out by Arjan van de Ven.

FIXME:
Shouldn't we rather use class->sem there, not class->subsys.rwsem?

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/nodemgr.c