Ying Xue cc086fcf92 tipc: fix a potential oops
Commit 6c9808ce09f7 ("tipc: remove port_lock") accidentally involves
a potential bug: when tipc socket instance(tsk) is not got with given
reference number in tipc_sk_get(), tsk is set to NULL. Subsequently
we jump to exit label where to decrease socket reference counter
pointed by tsk pointer in tipc_sk_put(). However, As now tsk is NULL,
oops may happen because of touching a NULL pointer.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-29 20:22:43 -07:00
..
2014-08-24 23:02:45 -07:00
2014-08-29 20:02:07 -07:00
2014-07-01 23:46:21 -07:00
2014-08-22 12:23:11 -07:00
2014-06-04 22:46:38 -07:00
2014-08-29 20:02:07 -07:00
2014-08-29 20:02:07 -07:00
2014-08-13 18:13:19 -06:00
2014-08-29 20:22:43 -07:00