[PATCH 3.12 031/170] IB/umad: Fix error handling

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 8ec0a0e6b58218bdc1db91dd70ebfcd6ad8dd6cd upstream. Avoid leaking a kref count in ib_umad_open() if port->ib_dev == NULL or if nonseekable_open() fails. Avoid leaking a

[PATCH 3.12 031/170] IB/umad: Fix error handling

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 8ec0a0e6b58218bdc1db91dd70ebfcd6ad8dd6cd upstream. Avoid leaking a kref count in ib_umad_open() if port-ib_dev == NULL or if nonseekable_open() fails.