[PATCH 3.12 032/170] IB/umad: Fix use-after-free on close

2014-07-18 Thread Jiri Slaby
From: Bart Van Assche 3.12-stable review patch. If anyone has any objections, please let me know. === commit 60e1751cb52cc6d1ae04b6bd3c2b96e770b5823f upstream. Avoid that closing /dev/infiniband/umad or /dev/infiniband/issm triggers a use-after-free. __fput() invokes

[PATCH 3.12 032/170] IB/umad: Fix use-after-free on close

2014-07-18 Thread Jiri Slaby
From: Bart Van Assche bvanass...@acm.org 3.12-stable review patch. If anyone has any objections, please let me know. === commit 60e1751cb52cc6d1ae04b6bd3c2b96e770b5823f upstream. Avoid that closing /dev/infiniband/umadn or /dev/infiniband/issmn triggers a use-after-free. __fput()