Commit 5b76d8d9 authored by David S. Miller's avatar David S. Miller

[NBD]: Kill uninitialized use warning.

parent d8c9bacf
...@@ -170,7 +170,8 @@ void nbd_send_req(struct nbd_device *lo, struct request *req) ...@@ -170,7 +170,8 @@ void nbd_send_req(struct nbd_device *lo, struct request *req)
down(&lo->tx_lock); down(&lo->tx_lock);
if (!sock || !lo->sock) { if (!sock || !lo->sock) {
FAIL("Attempted sendmsg to closed socket\n"); printk(KERN_ERR "NBD: Attempted sendmsg to closed socket\n");
goto error_out;
} }
result = nbd_xmit(1, sock, (char *) &request, sizeof(request), nbd_cmd(req) == NBD_CMD_WRITE ? MSG_MORE : 0); result = nbd_xmit(1, sock, (char *) &request, sizeof(request), nbd_cmd(req) == NBD_CMD_WRITE ? MSG_MORE : 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment