drbd: drbd_send(): Return a "real" error code if we have no socket
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 9 Dec 2010 22:52:22 +0000 (23:52 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:44:29 +0000 (16:44 +0100)
commitc0d42c8e5724e470873fa7491200c083600f5787
tree9b776b9b61c227bd6db2d29f3b3a0ec55f60f0ba
parente90285e0ba11c1a4a09b8a50d8d5b18e1298d245
drbd: drbd_send(): Return a "real" error code if we have no socket

Q: Can this case even trigger?  Is failing this way any better than one
that causes a NULL pointer access?

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c