]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Clear dcbx memory buffers before the usage.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Mon, 29 Aug 2016 12:29:54 +0000 (08:29 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 04:59:42 +0000 (20:59 -0800)
commit6db0e4497dfb8b3e2c5ddc8cc9fd9ed884fd890e
tree2e82704925afd0707aec3151591af8357b0368c2
parent8444a03533d4eb3751528243edc370ed645ee368
qed: Clear dcbx memory buffers before the usage.

Orabug: 25477939

This patch takes care of clearing the uninitialized buffer before using it.
1. pfc pri-enable bitmap need to be cleared before setting the requested
   enable bits. Without this, the un-touched values will be merged with
   requested values and sent to MFW.
2. The data in app-entry field need to be cleared before using it.
3. Clear the output data buffer used in qed_dcbx_query_params().

Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c5e801dac4daff972013613ae3edae6668b2aa7c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c