]> git.baikalelectronics.ru Git - kernel.git/commit
rapidio: fix use after free in rio_unregister_scan()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 31 Jul 2013 20:53:34 +0000 (13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:02 +0000 (14:41 -0700)
commit7ddd6fa0aaeb6fb1570425b6b517375eef459225
tree28f871e0aad6131c5c3d9297f3fa7fb202363018
parent6b026d855445a597bc881572adac5a5618b112c7
rapidio: fix use after free in rio_unregister_scan()

We're freeing the list iterator so we can't move to the next entry.
Since there is only one matching mport_id, we can just break after
finding it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/rio.c