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>
Mon, 14 Apr 2014 13:42:18 +0000 (06:42 -0700)
commit752e4086d0b553125f416ebb1563f5e72febc01c
tree151332641e1d360cd69f793bfca9089fc5c3c262
parentef533ea1fd707ca9815a1855bd5ff1af31695ea1
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