lkml.org 
[lkml]   [2003]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: scsi_report_lun_scan bug?
    Oops sorry did not know about that...

    Here it is.

    [root@Host200-w2k root]# diff -u
    /cdrive/mm1/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    /cdrive/mm3/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    ---
    /cdrive/mm1/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    2003-11-04 11:52:30.000000000 -0800
    +++
    /cdrive/mm3/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    2003-11-17 18:25:30.534512992 -0800
    @@ -899,7 +899,7 @@
    unsigned int retries;
    struct scsi_lun *lunp, *lun_data;
    struct scsi_request *sreq;
    - char *data;
    + unsigned char *data;

    /*
    * Only support SCSI-3 and up devices.
    @@ -990,7 +990,7 @@
    /*
    * Get the length from the first four bytes of
    lun_data.
    */
    - data = (char *) lun_data->scsi_lun;
    + data = (unsigned char *) lun_data->scsi_lun;
    length = ((data[0] << 24) | (data[1] << 16) |
    (data[2] << 8) | (data[3] << 0));

    [root@Host200-w2k root]#
    [root@Host200-w2k root]#
    --- Matthew Wilcox <willy@debian.org> wrote:
    > On Mon, Nov 17, 2003 at 06:48:33PM -0800, Amit Patel
    > wrote:
    > > [root@Host200-w2k root]# diff
    >
    /cdrive/mm1/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    > >
    >
    /cdrive/mm3/linux-2.6.0-test9/drivers/scsi/scsi_scan.c
    > > 902c902
    > > < char *data;
    > > ---
    > > > unsigned char *data;
    >
    > Hi Amit. Can you send diffs in unified format in
    > the future, ie diff -u
    > Thanks.
    >
    > --
    > "It's not Hollywood. War is real, war is primarily
    > not about defeat or
    > victory, it is about death. I've seen thousands and
    > thousands of dead bodies.
    > Do you think I want to have an academic debate on
    > this subject?" -- Robert Fisk


    __________________________________
    Do you Yahoo!?
    Protect your identity with Yahoo! Mail AddressGuard
    http://antispam.yahoo.com/whatsnewfree
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:58    [W:0.021 / U:118.980 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site