qed: signedness bug in qed_dcbx_process_tlv()
PATCH 1/1 qed: signedness bug in qed_dcbx_process_tlv()
"priority" needs to be signed for the error handling to work.
---
Applies to the main net tree.
drivers/net/ethernet/qlogic/qed/qed_dcbx.c +2 -1
@@ -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;
Thanks, Dan.
-----Original Message-----
From: Dan Carpenter [mailto:[email protected]]
Sent: 23 May 2016 15:50
To: Yuval Mintz <[email protected]>; Sudarsana Kalluru <[email protected]>
Cc: Ariel Elior <[email protected]>; Dept-Eng Everest Linux L2 <[email protected]>; netdev <[email protected]>; [email protected]
Subject: [patch] qed: signedness bug in qed_dcbx_process_tlv()
"priority" needs to be signed for the error handling to work.
---
Applies to the main net tree.
drivers/net/ethernet/qlogic/qed/qed_dcbx.c +2 -1
@@ -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;
From: Dan Carpenter <[email protected]>
Date: Mon, 23 May 2016 13:19:35 +0300
Quoted 4 lines
"priority" needs to be signed for the error handling to work.
Fixes 39651abd2814 ('qed: add support for dcbx.')Signed-off-by Dan Carpenter <[email protected]>
Applied.