commit | 571cf29644542b9e410ed102cb35ecb27b4fdfa3 | [log] [tgz] |
---|---|---|
author | Po Liu <Po.Liu@nxp.com> | Thu May 07 18:57:38 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu May 07 13:05:46 2020 -0700 |
tree | 9ce6f7827d196fa6d52357d8f58a2b7e1bd73c47 | |
parent | 7f960633a458136d168f2049508d39cba8be55bd [diff] |
net:enetc: bug fix for qos sfi operate space after freed 'Dan Carpenter' reported: This code frees "sfi" and then dereferences it on the next line: > kfree(sfi); > clear_bit(sfi->index, epsfp.psfp_sfi_bitmap); This "sfi->index" should be "index". Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Po Liu <Po.Liu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>