rds: prevent dereference of a NULL device in rds_iw_laddr_check
authorSasha Levin <sasha.levin@oracle.com>
Sun, 30 Mar 2014 00:39:35 +0000 (20:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Mar 2014 20:25:52 +0000 (16:25 -0400)
commitbf39b4247b8799935ea91d90db250ab608a58e50
tree3b962ff584e733f658bb9fce361b2712927135b2
parent2d3b479df41a10e2f41f9259fcba775bd34de6e4
rds: prevent dereference of a NULL device in rds_iw_laddr_check

Binding might result in a NULL device which is later dereferenced
without checking.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/iw.c