mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
[SCSI] fix transport class corner case after rework
If your transport class sets the ATTRIBUTE_CONTAINER_NO_CLASSDEVS flag, then its configure method never gets called. This patch fixes that so that the configure method is called with a NULL classdev. Also remove a spurious inverted comma in the transport_class comments. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
975f24bdc7
commit
ebd8bb7647
@@ -237,6 +237,11 @@ attribute_container_device_trigger(struct device *dev,
|
||||
if (!cont->match(cont, dev))
|
||||
continue;
|
||||
|
||||
if (attribute_container_no_classdevs(cont)) {
|
||||
fn(cont, dev, NULL);
|
||||
continue;
|
||||
}
|
||||
|
||||
spin_lock(&cont->containers_lock);
|
||||
list_for_each_entry_safe(ic, tmp, &cont->containers, node) {
|
||||
if (dev == ic->classdev.dev)
|
||||
|
Reference in New Issue
Block a user