diff options
author | Alan Stern <[email protected]> | 2022-03-17 16:39:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 12:54:24 +0100 |
commit | 1892bf90677abcad7f06e897e308f5c3e3618dd4 (patch) | |
tree | 9232bf3e5165aa661a234cb192e04b1f4b6c17d1 /net/lapb/lapb_iface.c | |
parent | 6653b827613aa301de691842c38f01e874604f88 (diff) |
USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c
The kernel test robot found a problem with the ene_ub6250 subdriver in
usb-storage: It uses structures containing bitfields to represent
hardware bits in its SD_STATUS, MS_STATUS, and SM_STATUS bytes. This
is not safe; it presumes a particular bit ordering and it assumes the
compiler will not insert padding, neither of which is guaranteed.
This patch fixes the problem by changing the structures to simple u8
values, with the bitfields replaced by bitmask constants.
CC: <[email protected]>
Signed-off-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/YjOcbuU106UpJ/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions