[SCSI] sg: fix incorrect last scatg length
authorDouglas Gilbert <dougg@torque.net>
Fri, 27 Oct 2006 21:47:49 +0000 (17:47 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 9 Nov 2006 05:28:01 +0000 (14:28 +0900)
commit7ca63cb470f23a197f187afe936d4bf806197d6e
tree530c54ec8418fff6ebd918b486eb2dfde05a1775
parent4039c30ef5d9189ff8dc72aaf610d1c933877e20
[SCSI] sg: fix incorrect last scatg length

For certain LLDs the sg driver can cause on oops
when the transfer length is large and not a
multiple of PAGE_SIZE.

  ChangeLog:
    - correct the length of the last scatter gather
      list element.
    - fix some printk()s that have the wrong function
      name.

Signed-off-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c