* [PATCH] firewire: fw-sbp2: fix parsing of logical unit directories
[not found] ` <486272D0.7090506@s5r6.in-berlin.de>
@ 2008-06-25 16:37 ` Stefan Richter
0 siblings, 0 replies; only message in thread
From: Stefan Richter @ 2008-06-25 16:37 UTC (permalink / raw)
To: linux1394-devel, Kevin Valentine; +Cc: linux-kernel, Richard Sharpe
Date: Tue, 24 Jun 2008 19:11:13 -0700
From: Richard Sharpe <realrichardsharpe@gmail.com>
There is a small off-by-one bug in firewire-sbp2. This causes problems
when a device exports multiple LUN Directories. I found it when trying
to talk to a SONY DVD Jukebox.
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Acked-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (op. order, changelog)
---
Kevin, this bug probably prevented the detection of the second drive in
the PowerFile C200 when you tested the new drivers.
drivers/firewire/fw-sbp2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux/drivers/firewire/fw-sbp2.c
===================================================================
--- linux.orig/drivers/firewire/fw-sbp2.c
+++ linux/drivers/firewire/fw-sbp2.c
@@ -1066,7 +1066,8 @@ static int sbp2_scan_unit_dir(struct sbp
break;
case SBP2_CSR_LOGICAL_UNIT_DIRECTORY:
- if (sbp2_scan_logical_unit_dir(tgt, ci.p + value) < 0)
+ /* Adjust for the increment in the iterator */
+ if (sbp2_scan_logical_unit_dir(tgt, ci.p - 1 + value) < 0)
return -ENOMEM;
break;
}
--
Stefan Richter
-=====-==--- -==- ==--=
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-25 16:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <46b8a8850806241911t1da66504i960b3013d1dd6ba8@mail.gmail.com>
[not found] ` <48622A83.8000809@s5r6.in-berlin.de>
[not found] ` <46b8a8850806250757y4aa4b27au79fd9037ebc3c80@mail.gmail.com>
[not found] ` <486272D0.7090506@s5r6.in-berlin.de>
2008-06-25 16:37 ` [PATCH] firewire: fw-sbp2: fix parsing of logical unit directories Stefan Richter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®