Ronnie Sahlberg <lsahlber@xxxxxxxxxx> writes: > Some servers may return that we got a lease in rsp->OplockLevel > but then in the lease context contradict this and say we got no lease > at all. Thus we need to check the context if we have a lease. > Additionally, IF we do not get a lease we need to make sure we close > the handle before we return an error to the caller. > > Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> > --- > fs/cifs/cached_dir.c | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) Reviewed-by: Paulo Alcantara (SUSE) <pc@xxxxxxxxxxxxx>