mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 20:34:05 +00:00
Commit1892bf9067("USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c") converted the media status fields from bitfields to bit masks. The original ene_transport() test called ene_init() only when neither media type was ready: !(sd_ready || ms_ready) The converted test became: !sd_ready || ms_ready This is not equivalent. Restore the original semantics by testing that both ready bits are clear before calling ene_init(). Fixes:1892bf9067("USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c") Cc: stable <[email protected]> Signed-off-by: Xu Rao <[email protected]> Reviewed-by: Alan Stern <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>