]> git.baikalelectronics.ru Git - kernel.git/commit
alx: fix wrong condition to free descriptor memory
authorTobias Regnery <tobias.regnery@gmail.com>
Tue, 24 Jan 2017 13:34:22 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 20:27:58 +0000 (15:27 -0500)
commit2b970abbbe204049c4538aec9fba8105a1e77c69
tree1de63dbbeb69250983d3d8b7d3e21d2d18f768d1
parent45ce3526e384fcf657ba1feb406335931da87792
alx: fix wrong condition to free descriptor memory

The condition to free the descriptor memory is wrong, we want to free the
memory if it is set and not if it is unset. Invert the test to fix this
issue.

Fixes: b0999223f224b ("alx: add ability to allocate and free alx_napi structures")
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c