Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54b9430f authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

qed: signedness bug in qed_dcbx_process_tlv()



"priority" needs to be signed for the error handling to work.

Fixes: 39651abd ('qed: add support for dcbx.')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 612bacad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;