Re: [PATCH] wifi: rtw88: correct qsel_to_ep[] type as int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/8/23 03:55, Ping-Ke Shih wrote:
qsel_to_ep[] can be assigned negative value, so change type from 'u8' to
'int'. Otherwise, Smatch static checker warns:
   drivers/net/wireless/realtek/rtw88/usb.c:219 rtw_usb_parse() warn:
   assigning (-22) to unsigned variable 'rtwusb->qsel_to_ep[8]'

Cc: stable@xxxxxxxxxxxxxxx
Fixes: a6f187f92bcc ("wifi: rtw88: usb: fix priority queue to endpoint mapping")
Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Link: https://lore.kernel.org/linux-wireless/c3f70197-829d-48ed-ae15-66a9de80fa90@kili.mountain/
Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
---

Tested-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>

Larry




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux