diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-05-27 11:24:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-27 11:24:31 -0700 |
commit | f96e9641e92b54de27b93d1af03d74b8304ce00a (patch) | |
tree | 3f2e3a5862bdbdfe455b23ad8cc888625cbafea9 /drivers/net/ethernet/pensando | |
parent | 7cf4eda481b235cbc7c210715cce19fde3d23d55 (diff) | |
download | linux-f96e9641e92b54de27b93d1af03d74b8304ce00a.tar.bz2 |
net: ethernet: mtk-star-emac: fix error path in RX handling
The dma_addr field in desc_data must not be overwritten until after the
new skb is mapped. Currently we do replace it with uninitialized value
in error path. This change fixes it by moving the assignment before the
label to which we jump after mapping or allocation errors.
Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando')
0 files changed, 0 insertions, 0 deletions