atm: dereference of he_dev->rbps_virt in he_init_group()
authorJuha Leppanen <juha_motorsportcom@luukku.com>
Mon, 28 Sep 2009 19:45:29 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2009 19:45:29 +0000 (12:45 -0700)
commit1b66c1ef2fd86082d49b1e005bd86fd0c60ad552
tree4245fdd3afdc4c9cc64678efbf4f9741d2c6ff8e
parent2f72291d3d0e440f9343c7b97dc233c1a122165a
atm: dereference of he_dev->rbps_virt in he_init_group()

The prefix decrement causes a very long loop if pci_pool_alloc() failed
in the first iteration. Also I swapped rbps and rbpl arguments.

Reported-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c