patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / usb / gadget / file_storage.c
index 9a78238..55f4246 100644 (file)
@@ -2054,7 +2054,7 @@ static int do_request_sense(struct fsg_dev *fsg, struct fsg_buffhd *bh)
        buf[0] = 0x80 | 0x70;                   // Valid, current error
        buf[2] = SK(sd);
        put_be32(&buf[3], sdinfo);              // Sense information
-       buf[7] = 18 - 7;                        // Additional sense length
+       buf[7] = 18 - 8;                        // Additional sense length
        buf[12] = ASC(sd);
        buf[13] = ASCQ(sd);
        return 18;