diff options
author | Steve French <sfrench@us.ibm.com> | 2008-08-08 21:10:16 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-08-08 21:10:16 +0000 |
commit | ad8b15f0ffc297cdd6c65ef7552b3b8abd11a401 (patch) | |
tree | ee3fedbfb1e3be88898de6297e82f7e89cbac17d /fs/cifs/cifssmb.c | |
parent | 0510eeb7367aca017c6320d04cfd9cbc3b5dd992 (diff) | |
download | linux-ad8b15f0ffc297cdd6c65ef7552b3b8abd11a401.tar.gz linux-ad8b15f0ffc297cdd6c65ef7552b3b8abd11a401.tar.bz2 linux-ad8b15f0ffc297cdd6c65ef7552b3b8abd11a401.zip |
[CIFS] list entry can not return null
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 6e8e8fc04c02..994de7c90474 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -128,8 +128,7 @@ static void mark_open_files_invalid(struct cifsTconInfo *pTcon) write_lock(&GlobalSMBSeslock); list_for_each_safe(tmp, tmp1, &pTcon->openFileList) { open_file = list_entry(tmp, struct cifsFileInfo, tlist); - if (open_file) - open_file->invalidHandle = true; + open_file->invalidHandle = true; } write_unlock(&GlobalSMBSeslock); /* BB Add call to invalidate_inodes(sb) for all superblocks mounted |