mirror of https://github.com/hak5/openwrt-owl.git
fix unbalanced mutex_lock/mutex_unlock in mini_fo getxattr op. Thanks Daniel Dickinson for tracking this down
SVN-Revision: 24906owl
parent
dcec7f5e20
commit
e8cee6c850
|
@ -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