Module Name: src Committed By: riastradh Date: Thu Mar 3 05:54:21 UTC 2022
Modified Files: src/sys/dev/usb: if_aue.c if_axe.c if_axen.c if_mos.c if_mue.c if_smsc.c if_udav.c if_ure.c if_url.c Log Message: usbnet drivers: Avoid undefined behaviour if read reg fails. Some callers don't check the error code, e.g. ~all the mii phy drivers using PHY_READ. Just return zero if the device is gone or the xfer fails for any other reason. To generate a diff of this commit: cvs rdiff -u -r1.184 -r1.185 src/sys/dev/usb/if_aue.c cvs rdiff -u -r1.143 -r1.144 src/sys/dev/usb/if_axe.c cvs rdiff -u -r1.87 -r1.88 src/sys/dev/usb/if_axen.c cvs rdiff -u -r1.16 -r1.17 src/sys/dev/usb/if_mos.c cvs rdiff -u -r1.75 -r1.76 src/sys/dev/usb/if_mue.c cvs rdiff -u -r1.85 -r1.86 src/sys/dev/usb/if_smsc.c cvs rdiff -u -r1.90 -r1.91 src/sys/dev/usb/if_udav.c cvs rdiff -u -r1.50 -r1.51 src/sys/dev/usb/if_ure.c cvs rdiff -u -r1.89 -r1.90 src/sys/dev/usb/if_url.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.