libata: Initialize nbytes for internal sg commands
A message that is not in the archive (sent off-list or not yet received): 1170178343430-patch-mail.ibm.com
Tejun Heo
Acked-byQuoted 5 lines · Brian King
Some LLDDs, like ipr, use nbytes and
pad_lento determine the total data transfer length of a command. Make sure nbytes gets initialized for internally generated commands.Signed-off-by Brian King <[email protected]>
Signature · 1 line
tejun
Jeff Garzik
AppliedQuoted 15 lines · Brian King
Some LLDDs, like ipr, use nbytes and
pad_lento determine the total data transfer length of a command. Make sure nbytes gets initialized for internally generated commands.Signed-off-by Brian King <[email protected]>---
Jeff,
This bug is already fixed in #upstream, with Tejun's patch, which does away with nsect, but it is still broken in 2.6.20. This is a resend of my original, 1 line patch. If this doesn't make 2.6.20, it might be a candidate for -stable, since without it, libata is not able to find SATA devices attached with ipr.
Quoted 5 lines
Thanks,
Brian
Signed-off-by Brian King <[email protected]>
applied