]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] attribute container final klist fixes
authorJames Bottomley <James.Bottomley@steeleye.com>
Sun, 28 Aug 2005 14:13:17 +0000 (09:13 -0500)
committerJames Bottomley <jejb@titanic.(none)>
Wed, 31 Aug 2005 03:44:32 +0000 (22:44 -0500)
commitc4522c06a74cc689656314374af20ad51406212e
treead08bea9651332c41192cd7e019692a1e1e103bf
parent863f832a528c48dd4d82b7bb69eb3f0554d65b9f
[SCSI] attribute container final klist fixes

Since the attribute container deletes from a klist while it's walking
it, it is vulnerable to the problem (and fix) here:

http://marc.theaimsgroup.com/?l=linux-scsi&m=112485448830217

The attached fixes this (but won't compile without the above).

It also fixes the logical reversal in the traversal loop which meant
that we were never actually traversing the loop to hit this bug in the
first place.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/base/attribute_container.c