1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 02:48:26 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24906 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-01-05 03:07:56 +00:00
parent 5526bb9258
commit 5ceda5f233
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);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3454,7 +3454,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3454,7 +3454,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif

View File

@ -3456,7 +3456,7 @@
+ err = hidden_dentry->d_inode->i_op->getxattr(hidden_dentry, encoded_name, encoded_value, size);
+ /* unlock_kernel() will be done by caller. */
+#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
+ up(&hidden_dentry->d_inode->i_sem);
+#endif