]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit511c84e03f1603d7a09a6bdd8e6c67118244e84a
treebead85900cf46216b7f0ccdaaf2e0d43d73f61f9
parent607f4339f31efe28c666e1aab3e0e7703bd1ce16
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