From: Sachin Prabhu Date: Wed, 4 Feb 2015 13:10:26 +0000 (+0000) Subject: cifs: smb2_clone_range() - exit on unhandled error X-Git-Tag: omap-for-v4.2/o2_dc~225^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2477bc58d49edb1c0baf59df7dc093dce682af2b;p=pandora-kernel.git cifs: smb2_clone_range() - exit on unhandled error While attempting to clone a file on a samba server, we receive a STATUS_INVALID_DEVICE_REQUEST. This is mapped to -EOPNOTSUPP which isn't handled in smb2_clone_range(). We end up looping in the while loop making same call to the samba server over and over again. The proposed fix is to exit and return the error value when encountered with an unhandled error. Cc: Signed-off-by: Sachin Prabhu Signed-off-by: Steve French Signed-off-by: Steve French --- Reading git-diff-tree failed