mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 23:16:17 +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:
parent
5526bb9258
commit
5ceda5f233
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user