Commit e06c9dfe authored by Dmitry Eremin's avatar Dmitry Eremin Committed by Greg Kroah-Hartman

staging/lustre/llite: A not locked mutex can be unlocked.

In case of memory pressure a not locked mutex can be unlocked
in function ll_file_open(). This is not allowed and subsequent
behavior is not defined.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3157
Lustre-change: http://review.whamcloud.com/6028Signed-off-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarJohn Hammond <johnlockwoodhammond@gmail.com>
Reviewed-by: default avatarNikitas Angelinas <nikitas_angelinas@xyratex.com>
Reviewed-by: default avatarSebastien Buisson <sebastien.buisson@bull.net>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarPeng Tao <tao.peng@emc.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 73863d83
...@@ -526,7 +526,7 @@ int ll_file_open(struct inode *inode, struct file *file) ...@@ -526,7 +526,7 @@ int ll_file_open(struct inode *inode, struct file *file)
fd = ll_file_data_get(); fd = ll_file_data_get();
if (fd == NULL) if (fd == NULL)
GOTO(out_och_free, rc = -ENOMEM); GOTO(out_openerr, rc = -ENOMEM);
fd->fd_file = file; fd->fd_file = file;
if (S_ISDIR(inode->i_mode)) { if (S_ISDIR(inode->i_mode)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment