fix unbalanced mutex_lock/mutex_unlock in mini_fo getxattr op. Thanks Daniel Dickinson for tracking this down

SVN-Revision: 24906
owl
Jo-Philipp Wich 2011-01-05 03:07:56 +00:00
parent dcec7f5e20
commit e8cee6c850
7 changed files with 7 additions and 7 deletions

View File

@ -3454,7 +3454,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3454,7 +3454,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3454,7 +3454,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size); + err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */ + /* unlock_kernel() will be done by caller. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+ mutex_lock(&hidden_dentry->d_inode->i_mutex); + mutex_unlock(&hidden_dentry->d_inode->i_mutex);
+#else +#else
+ up(&hidden_dentry->d_inode->i_sem); + up(&hidden_dentry->d_inode->i_sem);
+#endif +#endif