summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.35
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-05 03:07:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-05 03:07:56 +0000
commite8cee6c8501989f560887851e2319ef8ec571043 (patch)
tree22fe00db5ee6718939c09080d3274a448148bfd9 /target/linux/generic/patches-2.6.35
parentdcec7f5e20e100122fd7f5105c514d28e45f010e (diff)
downloadmtk-20170518-e8cee6c8501989f560887851e2319ef8ec571043.zip
mtk-20170518-e8cee6c8501989f560887851e2319ef8ec571043.tar.gz
mtk-20170518-e8cee6c8501989f560887851e2319ef8ec571043.tar.bz2
fix unbalanced mutex_lock/mutex_unlock in mini_fo getxattr op. Thanks Daniel Dickinson for tracking this down
SVN-Revision: 24906
Diffstat (limited to 'target/linux/generic/patches-2.6.35')
-rw-r--r--target/linux/generic/patches-2.6.35/209-mini_fo.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-2.6.35/209-mini_fo.patch b/target/linux/generic/patches-2.6.35/209-mini_fo.patch
index d7e3220..f158778 100644
--- a/target/linux/generic/patches-2.6.35/209-mini_fo.patch
+++ b/target/linux/generic/patches-2.6.35/209-mini_fo.patch
@@ -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