generic: replace yaffs mutex_fix patch
[openwrt/staging/mkresin.git] / target / linux / generic / patches-3.6 / 504-yaffs-3.2_fix.patch
index f84332ab29939e2b5ff7d192c25cf04c64f4799d..4b1a71e5b2867cb2a125ec1a2cd08e4cf8963615 100644 (file)
  }
  
  static struct file_system_type yaffs2_fs_type = {
-@@ -3223,7 +3250,7 @@ static int yaffs_proc_read(char *page,
-               buf += sprintf(buf,"\n");
-       else {
-               step-=2;
--              
-+
-               down(&yaffs_context_lock);
-               /* Locate and print the Nth entry.  Order N-squared but N is small. */
 @@ -3240,7 +3267,7 @@ static int yaffs_proc_read(char *page,
                                buf = yaffs_dump_dev_part0(buf, dev);
                        } else
 +
                        break;
                }
-               up(&yaffs_context_lock);
+               mutex_unlock(&yaffs_context_lock);
 @@ -3267,7 +3294,7 @@ static int yaffs_stats_proc_read(char *p
                int erasedChunks;