mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 21:45:01 +08:00
qed: signedness bug in qed_dcbx_process_tlv()
"priority" needs to be signed for the error handling to work.
Fixes: 39651abd28
('qed: add support for dcbx.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
612bacad78
commit
54b9430f04
@ -192,9 +192,10 @@ qed_dcbx_process_tlv(struct qed_hwfn *p_hwfn,
|
||||
struct dcbx_app_priority_entry *p_tbl,
|
||||
u32 pri_tc_tbl, int count, bool dcbx_enabled)
|
||||
{
|
||||
u8 tc, priority, priority_map;
|
||||
u8 tc, priority_map;
|
||||
enum dcbx_protocol_type type;
|
||||
u16 protocol_id;
|
||||
int priority;
|
||||
bool enable;
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user