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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Apr 2014 00:13:18 +0000 (17:13 -0700)
commit04477075793234a9cd5411b3fe359f8506b0734e
tree424bfd18cc397afe8a4c64bc8bb95b6f39397372
parent8c3911a71ede8ec4c29329c7a5a80c37b3aeb83e
rds: prevent dereference of a NULL device in rds_iw_laddr_check

[ Upstream commit bf39b4247b8799935ea91d90db250ab608a58e50 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rds/iw.c