Răsfoiți Sursa

USB: make usb_iso_packet_descriptor.status signed

The status in usb_iso_packet_descriptor should be signed, for the benefit
of someone who casts to a long or makes other benign misstep (the principle
of least surprise).

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Pete Zaitcev 18 ani în urmă
părinte
comite
d1bbb60007
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      include/linux/usb.h

+ 1 - 1
include/linux/usb.h

@@ -935,7 +935,7 @@ struct usb_iso_packet_descriptor {
 	unsigned int offset;
 	unsigned int offset;
 	unsigned int length;		/* expected length */
 	unsigned int length;		/* expected length */
 	unsigned int actual_length;
 	unsigned int actual_length;
-	unsigned int status;
+	int status;
 };
 };
 
 
 struct urb;
 struct urb;