diff options
| author | Xu Rao <raoxu@uniontech.com> | 2026-06-26 15:06:07 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-08 13:30:11 +0200 |
| commit | 5fc3f333c001f1e308bbcdeecdec0d054d24338b (patch) | |
| tree | e08bb990ff19322eb0a0b7d612db4f3b257574ba /rust/kernel/drm/gpuvm/git@git.tavy.me:linux-stable.git | |
| parent | 30adce93d5c4a5a1ec29d9249e3fdfcc391d406b (diff) | |
USB: usb-storage: ene_ub6250: restore media-ready check
Commit 1892bf90677a ("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: 1892bf90677a ("USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c")
Cc: stable <stable@kernel.org>
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://patch.msgid.link/F42641386E32404F+20260626070607.4119527-1-raoxu@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/drm/gpuvm/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
