diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2016-03-27 00:24:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-28 05:39:22 +0300 |
commit | 79c134239df989167acd277364b83ff9e91e70c4 (patch) | |
tree | 48d945e9930d95c5f293cf7b5c2647fccb7f9f2f /net/atm/raw.c | |
parent | 66391b383b70920629df403f2881ea48805e6659 (diff) | |
download | linux-79c134239df989167acd277364b83ff9e91e70c4.tar.xz |
net: sxgbe: fix error paths in sxgbe_platform_probe()
We need to use post-decrement to ensure that irq_dispose_mapping is
also called on priv->rxq[0]->irq_no; moreover, if one of the above for
loops failed already at i==0 (so we reach one of these labels with
that value of i), we'll enter an essentially infinite loop of
out-of-bounds accesses.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/raw.c')
0 files changed, 0 insertions, 0 deletions