aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2008-09-02 14:36:07 -0700
committerLinus Torvalds <[email protected]>2008-09-02 19:21:40 -0700
commitbb8fb4e6840ecebdc61f7ebd0653187e7128dde5 (patch)
tree7c05ebb15bdf56a3895f511b18cc19f2383c7b4a /net/unix/sysctl_net_unix.c
parent73442daf2ea85e2a779396b76b1a39b10188ecb5 (diff)
ibft: fix target info parsing in ibft module
I got this patch through Red Hat's bugzilla from the bug submitter and patch creator. I have just fixed it up so it applies without fuzz to upstream kernels. Original patch and description from Shyam kumar Iyer: The issue [ibft module not displaying targets with short names] is because of an offset calculatation error in the iscsi_ibft.c code. Due to this error directory structure for the target in /sys/firmware/ibft does not get created and so the initiator is unable to connect to the target. Note that this bug surfaced only with an name that had a short section at the end. eg: "iqn.1984-05.com.dell:dell". It did not surface when the iqn's had a longer section at the end. eg: "iqn.2001-04.com.example:storage.disk2.sys1.xyz" So, the eot_offset was calculated such that an extra 48 bytes i.e. the size of the ibft_header which has already been accounted was subtracted twice. This was not evident with longer iqn names because they would overshoot the total ibft length more than 48 bytes and thus would escape the bug. Signed-off-by: Shyam Kumar Iyer <[email protected]> Signed-off-by: Mike Christie <[email protected]> Cc: Konrad Rzeszutek <[email protected]> Cc: Peter Jones <[email protected]> Cc: James Bottomley <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions