diff options
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 9bbc509443e5..fb29a75053ef 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -3499,8 +3499,10 @@ static void drbdd(struct drbd_conf *mdev) | |||
3499 | 3499 | ||
3500 | while (get_t_state(&mdev->receiver) == Running) { | 3500 | while (get_t_state(&mdev->receiver) == Running) { |
3501 | drbd_thread_current_set_cpu(mdev); | 3501 | drbd_thread_current_set_cpu(mdev); |
3502 | if (!drbd_recv_header(mdev, header)) | 3502 | if (!drbd_recv_header(mdev, header)) { |
3503 | drbd_force_state(mdev, NS(conn, C_PROTOCOL_ERROR)); | ||
3503 | break; | 3504 | break; |
3505 | } | ||
3504 | 3506 | ||
3505 | if (header->command < P_MAX_CMD) | 3507 | if (header->command < P_MAX_CMD) |
3506 | handler = drbd_cmd_handler[header->command]; | 3508 | handler = drbd_cmd_handler[header->command]; |