Skip to contentSkip to conversation

ieee1394 update

GIT PULL Stefan Richter 1 participant 1 message May 1, 2008 Firewire

lore
Share & tools
lore
#0 lore raw

Linus, please pull from the for-linus branch at

    git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6.git for-linus

to receive a regression fix for ieee1394 and a trivial bit for firewire.

Stefan Richter (2):
ieee1394: fix NULL pointer dereference in sysfs access
firewire: fw-sbp2: log scsi_target ID at release

 drivers/firewire/fw-sbp2.c |    2 +-
 drivers/ieee1394/nodemgr.c |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

Thanks.

commit f32ddaddf95d8a30be5a41cf681bc8792bc42ec7

Author: Stefan Richter <[email protected]>
Date:   Thu Apr 24 23:17:47 2008 +0200

firewire: fw-sbp2: log scsi_target ID at release

Makes the good-by message more informative.

drivers/firewire/fw-sbp2.c +1 -1
index 2a99937..62e3c91 100644
@@ -784,7 +784,7 @@ static void sbp2_release_target(struct kref *kref)
 		kfree(lu);
 	}
 	scsi_remove_host(shost);
-	fw_notify("released %s\n", tgt->bus_id);
+	fw_notify("released %s, target %d:0:0\n", tgt->bus_id, shost->host_no);
 
 	fw_unit_put(tgt->unit);
 	scsi_host_put(shost);

commit 07c7224cf74c3977c69c7c9a0b0fba264f2df36a

Author: Stefan Richter <[email protected]>
Date:   Thu May 1 10:43:04 2008 +0200

ieee1394: fix NULL pointer dereference in sysfs access

Regression since "ieee1394: prevent device binding of raw1394, video1394, dv1394", commit d2ace29fa44589da51fedc06a67b3f05301f3bfd:
$ cat /sys/bus/ieee1394/drivers/raw1394/device_ids triggers a NULL pointer dereference in fw_show_drv_device_ids. Reported by Miles Lane.

drivers/ieee1394/nodemgr.c +4 -1
index 70afa37..c6babe8 100644
@@ -520,8 +520,11 @@ static ssize_t fw_show_drv_device_ids(struct device_driver *drv, char *buf)
 	char *scratch = buf;
 
 	driver = container_of(drv, struct hpsb_protocol_driver, driver);
+	id = driver->id_table;
+	if (!id)
+		return 0;
 
-	for (id = driver->id_table; id->match_flags != 0; id++) {
+	for (; id->match_flags != 0; id++) {
 		int need_coma = 0;
 
 		if (id->match_flags & IEEE1394_MATCH_VENDOR_ID) {
Signature · 3 lines
Stefan Richter
-=====-==--- -=-= ----=
http://arcgraph.de/sr/