cifs: smb2_clone_range() - exit on unhandled error
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: <4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@vger.kernel.org>
Signed-off-by: Sachin Prabhu <fe031bd268e574c3e649d0fd7ef4a978e9d7c1cd@redhat.com>
Signed-off-by: Steve French <e960749f639d1acd8d03331895f053a37e692e9c@primarydata.com>
Signed-off-by: Steve French <51565b4e5841e493fd669866e11ea3c7c0d781cc@gmail.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs