netrom: copy_datagram_iovec can fail
authorAlan Cox <alan@linux.intel.com>
Tue, 4 Sep 2012 04:13:18 +0000 (04:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2012 16:57:35 +0000 (12:57 -0400)
commit6cf5c951175abcec4da470c50565cc0afe6cd11d
tree528117e0e3bfbbfe5345a73fdcedcaa7cfeff478
parent9fef76857feed8e94ca3a5ee37db644f04a9488b
netrom: copy_datagram_iovec can fail

Check for an error from this and if so bail properly.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/af_netrom.c