ieee1394: fix list corruption (reported at module removal)
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 26 Nov 2008 00:34:25 +0000 (01:34 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 29 Nov 2008 16:07:56 +0000 (17:07 +0100)
commite47c1feb17e61ef4e2f245c0af0c5a8e2a7798b2
tree12e24df6acd00564cb01da470c19c759698da0a9
parent031bb27c4bf77c2f60b3f3dea8cce63ef0d1fba9
ieee1394: fix list corruption (reported at module removal)

If there is more than one FireWire controller present, dummy_zero_addr
and dummy_max_addr were added multiple times to different lists, thus
corrupting the lists.  Fix this by allocating them dynamically per host
instead of just once globally.

(Perhaps a better address space allocation algorithm could rid us of the
two dummy address spaces.)

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10129 .

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