Skip to contentSkip to conversation

libata: Initialize nbytes for internal sg commands

PATCH Applied Tejun Heo 2 participants 2 messages Feb 1, 2007 – Feb 2, 2007 1 message not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1170178343430-patch-mail.ibm.com

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 15 lines · Brian King

Some LLDDs, like ipr, use nbytes and pad_len to determine the total data transfer length of a command. Make sure nbytes gets initialized for internally generated commands.

---

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

applied