CIFS: Fix error handling in cifs_readv_complete
authorPavel Shilovsky <piastry@etersoft.ru>
Fri, 21 Oct 2011 06:14:04 +0000 (10:14 +0400)
committerSteve French <smfrench@gmail.com>
Fri, 21 Oct 2011 14:21:04 +0000 (09:21 -0500)
commita2d6b6cacb4fd4494b4037c01abb1332cefbb37b
tree0357c72de853c8f7760200e617712f8ac2999fb7
parentb957ae9c53d5715a07f8bac644d8ff0a407c7e07
CIFS: Fix error handling in cifs_readv_complete

In cifs_readv_receive we don't update rdata->result to error value
after kmap'ing a page. We should kunmap the page in the no error
case only.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifssmb.c