nbd: zero from and len fields in NBD_CMD_DISCONNECT.
authorHani Benhabiles <kroosec@gmail.com>
Fri, 6 Jun 2014 21:38:30 +0000 (14:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:18 +0000 (16:08 -0700)
commit04cfac4e40b2b5dbaf8c0fc625878388a98bb9c6
treebead85900cf46216b7f0ccdaaf2e0d43d73f61f9
parentb1de0d139c97a6078bbada6cf2d27c30ce127a97
nbd: zero from and len fields in NBD_CMD_DISCONNECT.

Len field is already set to zero, but not the from field which is sent
as 0xfffffffffffffe00.  This makes no sense, and may cause confuse
server implementations doing sanity checks (qemu-nbd is an example.)

Signed-off-by: Hani Benhabiles <hani@linux.com>
Cc: Paul Clements <paul.clements@us.sios.com>
Cc: Paul Clements <Paul.Clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/nbd.c