rds: prevent dereference of a NULL device in rds_iw_laddr_check

[ Upstream commit bf39b4247b ]

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>
This commit is contained in:
Sasha Levin 2014-03-29 20:39:35 -04:00 • committed by Greg Kroah-Hartman
commit eb3d1ebaa7