<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/fs/ubifs, branch v4.4.24</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>ubifs: Fix assertion in layout_in_gaps()</title>
<updated>2016-09-15T06:27:53+00:00</updated>
<author>
<name>Vincent Stehlé</name>
<email>vincent.stehle@intel.com</email>
</author>
<published>2016-08-12T13:26:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4c10981673bb8aa798dac491bef41389646d02b1'/>
<id>4c10981673bb8aa798dac491bef41389646d02b1</id>
<content type='text'>
commit c0082e985fdf77b02fc9e0dac3b58504dcf11b7a upstream.

An assertion in layout_in_gaps() verifies that the gap_lebs pointer is
below the maximum bound. When computing this maximum bound the idx_lebs
count is multiplied by sizeof(int), while C pointers arithmetic does take
into account the size of the pointed elements implicitly already. Remove
the multiplication to fix the assertion.

Fixes: 1e51764a3c2ac05a ("UBIFS: add new flash file system")
Signed-off-by: Vincent Stehlé &lt;vincent.stehle@intel.com&gt;
Cc: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit c0082e985fdf77b02fc9e0dac3b58504dcf11b7a upstream.

An assertion in layout_in_gaps() verifies that the gap_lebs pointer is
below the maximum bound. When computing this maximum bound the idx_lebs
count is multiplied by sizeof(int), while C pointers arithmetic does take
into account the size of the pointed elements implicitly already. Remove
the multiplication to fix the assertion.

Fixes: 1e51764a3c2ac05a ("UBIFS: add new flash file system")
Signed-off-by: Vincent Stehlé &lt;vincent.stehle@intel.com&gt;
Cc: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>UBIFS: Implement -&gt;migratepage()</title>
<updated>2016-07-27T16:47:31+00:00</updated>
<author>
<name>Kirill A. Shutemov</name>
<email>kirill.shutemov@linux.intel.com</email>
</author>
<published>2016-06-16T21:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1e1f4ff765cb0cd011f30ed11a4ef18903329013'/>
<id>1e1f4ff765cb0cd011f30ed11a4ef18903329013</id>
<content type='text'>
commit 4ac1c17b2044a1b4b2fbed74451947e905fc2992 upstream.

During page migrations UBIFS might get confused
and the following assert triggers:
[  213.480000] UBIFS assert failed in ubifs_set_page_dirty at 1451 (pid 436)
[  213.490000] CPU: 0 PID: 436 Comm: drm-stress-test Not tainted 4.4.4-00176-geaa802524636-dirty #1008
[  213.490000] Hardware name: Allwinner sun4i/sun5i Families
[  213.490000] [&lt;c0015e70&gt;] (unwind_backtrace) from [&lt;c0012cdc&gt;] (show_stack+0x10/0x14)
[  213.490000] [&lt;c0012cdc&gt;] (show_stack) from [&lt;c02ad834&gt;] (dump_stack+0x8c/0xa0)
[  213.490000] [&lt;c02ad834&gt;] (dump_stack) from [&lt;c0236ee8&gt;] (ubifs_set_page_dirty+0x44/0x50)
[  213.490000] [&lt;c0236ee8&gt;] (ubifs_set_page_dirty) from [&lt;c00fa0bc&gt;] (try_to_unmap_one+0x10c/0x3a8)
[  213.490000] [&lt;c00fa0bc&gt;] (try_to_unmap_one) from [&lt;c00fadb4&gt;] (rmap_walk+0xb4/0x290)
[  213.490000] [&lt;c00fadb4&gt;] (rmap_walk) from [&lt;c00fb1bc&gt;] (try_to_unmap+0x64/0x80)
[  213.490000] [&lt;c00fb1bc&gt;] (try_to_unmap) from [&lt;c010dc28&gt;] (migrate_pages+0x328/0x7a0)
[  213.490000] [&lt;c010dc28&gt;] (migrate_pages) from [&lt;c00d0cb0&gt;] (alloc_contig_range+0x168/0x2f4)
[  213.490000] [&lt;c00d0cb0&gt;] (alloc_contig_range) from [&lt;c010ec00&gt;] (cma_alloc+0x170/0x2c0)
[  213.490000] [&lt;c010ec00&gt;] (cma_alloc) from [&lt;c001a958&gt;] (__alloc_from_contiguous+0x38/0xd8)
[  213.490000] [&lt;c001a958&gt;] (__alloc_from_contiguous) from [&lt;c001ad44&gt;] (__dma_alloc+0x23c/0x274)
[  213.490000] [&lt;c001ad44&gt;] (__dma_alloc) from [&lt;c001ae08&gt;] (arm_dma_alloc+0x54/0x5c)
[  213.490000] [&lt;c001ae08&gt;] (arm_dma_alloc) from [&lt;c035cecc&gt;] (drm_gem_cma_create+0xb8/0xf0)
[  213.490000] [&lt;c035cecc&gt;] (drm_gem_cma_create) from [&lt;c035cf20&gt;] (drm_gem_cma_create_with_handle+0x1c/0xe8)
[  213.490000] [&lt;c035cf20&gt;] (drm_gem_cma_create_with_handle) from [&lt;c035d088&gt;] (drm_gem_cma_dumb_create+0x3c/0x48)
[  213.490000] [&lt;c035d088&gt;] (drm_gem_cma_dumb_create) from [&lt;c0341ed8&gt;] (drm_ioctl+0x12c/0x444)
[  213.490000] [&lt;c0341ed8&gt;] (drm_ioctl) from [&lt;c0121adc&gt;] (do_vfs_ioctl+0x3f4/0x614)
[  213.490000] [&lt;c0121adc&gt;] (do_vfs_ioctl) from [&lt;c0121d30&gt;] (SyS_ioctl+0x34/0x5c)
[  213.490000] [&lt;c0121d30&gt;] (SyS_ioctl) from [&lt;c000f2c0&gt;] (ret_fast_syscall+0x0/0x34)

UBIFS is using PagePrivate() which can have different meanings across
filesystems. Therefore the generic page migration code cannot handle this
case correctly.
We have to implement our own migration function which basically does a
plain copy but also duplicates the page private flag.
UBIFS is not a block device filesystem and cannot use buffer_migrate_page().

Signed-off-by: Kirill A. Shutemov &lt;kirill.shutemov@linux.intel.com&gt;
[rw: Massaged changelog, build fixes, etc...]
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 4ac1c17b2044a1b4b2fbed74451947e905fc2992 upstream.

During page migrations UBIFS might get confused
and the following assert triggers:
[  213.480000] UBIFS assert failed in ubifs_set_page_dirty at 1451 (pid 436)
[  213.490000] CPU: 0 PID: 436 Comm: drm-stress-test Not tainted 4.4.4-00176-geaa802524636-dirty #1008
[  213.490000] Hardware name: Allwinner sun4i/sun5i Families
[  213.490000] [&lt;c0015e70&gt;] (unwind_backtrace) from [&lt;c0012cdc&gt;] (show_stack+0x10/0x14)
[  213.490000] [&lt;c0012cdc&gt;] (show_stack) from [&lt;c02ad834&gt;] (dump_stack+0x8c/0xa0)
[  213.490000] [&lt;c02ad834&gt;] (dump_stack) from [&lt;c0236ee8&gt;] (ubifs_set_page_dirty+0x44/0x50)
[  213.490000] [&lt;c0236ee8&gt;] (ubifs_set_page_dirty) from [&lt;c00fa0bc&gt;] (try_to_unmap_one+0x10c/0x3a8)
[  213.490000] [&lt;c00fa0bc&gt;] (try_to_unmap_one) from [&lt;c00fadb4&gt;] (rmap_walk+0xb4/0x290)
[  213.490000] [&lt;c00fadb4&gt;] (rmap_walk) from [&lt;c00fb1bc&gt;] (try_to_unmap+0x64/0x80)
[  213.490000] [&lt;c00fb1bc&gt;] (try_to_unmap) from [&lt;c010dc28&gt;] (migrate_pages+0x328/0x7a0)
[  213.490000] [&lt;c010dc28&gt;] (migrate_pages) from [&lt;c00d0cb0&gt;] (alloc_contig_range+0x168/0x2f4)
[  213.490000] [&lt;c00d0cb0&gt;] (alloc_contig_range) from [&lt;c010ec00&gt;] (cma_alloc+0x170/0x2c0)
[  213.490000] [&lt;c010ec00&gt;] (cma_alloc) from [&lt;c001a958&gt;] (__alloc_from_contiguous+0x38/0xd8)
[  213.490000] [&lt;c001a958&gt;] (__alloc_from_contiguous) from [&lt;c001ad44&gt;] (__dma_alloc+0x23c/0x274)
[  213.490000] [&lt;c001ad44&gt;] (__dma_alloc) from [&lt;c001ae08&gt;] (arm_dma_alloc+0x54/0x5c)
[  213.490000] [&lt;c001ae08&gt;] (arm_dma_alloc) from [&lt;c035cecc&gt;] (drm_gem_cma_create+0xb8/0xf0)
[  213.490000] [&lt;c035cecc&gt;] (drm_gem_cma_create) from [&lt;c035cf20&gt;] (drm_gem_cma_create_with_handle+0x1c/0xe8)
[  213.490000] [&lt;c035cf20&gt;] (drm_gem_cma_create_with_handle) from [&lt;c035d088&gt;] (drm_gem_cma_dumb_create+0x3c/0x48)
[  213.490000] [&lt;c035d088&gt;] (drm_gem_cma_dumb_create) from [&lt;c0341ed8&gt;] (drm_ioctl+0x12c/0x444)
[  213.490000] [&lt;c0341ed8&gt;] (drm_ioctl) from [&lt;c0121adc&gt;] (do_vfs_ioctl+0x3f4/0x614)
[  213.490000] [&lt;c0121adc&gt;] (do_vfs_ioctl) from [&lt;c0121d30&gt;] (SyS_ioctl+0x34/0x5c)
[  213.490000] [&lt;c0121d30&gt;] (SyS_ioctl) from [&lt;c000f2c0&gt;] (ret_fast_syscall+0x0/0x34)

UBIFS is using PagePrivate() which can have different meanings across
filesystems. Therefore the generic page migration code cannot handle this
case correctly.
We have to implement our own migration function which basically does a
plain copy but also duplicates the page private flag.
UBIFS is not a block device filesystem and cannot use buffer_migrate_page().

Signed-off-by: Kirill A. Shutemov &lt;kirill.shutemov@linux.intel.com&gt;
[rw: Massaged changelog, build fixes, etc...]
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Acked-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs</title>
<updated>2015-11-14T02:02:30+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-11-14T02:02:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5d2eb548b309be34ecf3b91f0b7300a2b9d09b8c'/>
<id>5d2eb548b309be34ecf3b91f0b7300a2b9d09b8c</id>
<content type='text'>
Pull vfs xattr cleanups from Al Viro.

* 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  f2fs: xattr simplifications
  squashfs: xattr simplifications
  9p: xattr simplifications
  xattr handlers: Pass handler to operations instead of flags
  jffs2: Add missing capability check for listing trusted xattrs
  hfsplus: Remove unused xattr handler list operations
  ubifs: Remove unused security xattr handler
  vfs: Fix the posix_acl_xattr_list return value
  vfs: Check attribute names in posix acl xattr handers
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull vfs xattr cleanups from Al Viro.

* 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  f2fs: xattr simplifications
  squashfs: xattr simplifications
  9p: xattr simplifications
  xattr handlers: Pass handler to operations instead of flags
  jffs2: Add missing capability check for listing trusted xattrs
  hfsplus: Remove unused xattr handler list operations
  ubifs: Remove unused security xattr handler
  vfs: Fix the posix_acl_xattr_list return value
  vfs: Check attribute names in posix acl xattr handers
</pre>
</div>
</content>
</entry>
<entry>
<title>ubifs: Remove unused security xattr handler</title>
<updated>2015-11-14T01:34:29+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruenba@redhat.com</email>
</author>
<published>2015-10-04T17:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=13d3408f100186d2755d9ac1ad8b5de9e1975a92'/>
<id>13d3408f100186d2755d9ac1ad8b5de9e1975a92</id>
<content type='text'>
Ubifs installs a security xattr handler in sb-&gt;s_xattr but doesn't use the
generic_{get,set,list,remove}xattr inode operations needed for processing
this list of attribute handlers; the handler is never called.  Instead,
ubifs uses its own xattr handlers which also process security xattrs.

Remove the dead code.

Signed-off-by: Andreas Gruenbacher &lt;agruenba@redhat.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Cc: Artem Bityutskiy &lt;dedekind1@gmail.com&gt;
Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;
Cc: linux-mtd@lists.infradead.org
Cc: Subodh Nijsure &lt;snijsure@grid-net.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ubifs installs a security xattr handler in sb-&gt;s_xattr but doesn't use the
generic_{get,set,list,remove}xattr inode operations needed for processing
this list of attribute handlers; the handler is never called.  Instead,
ubifs uses its own xattr handlers which also process security xattrs.

Remove the dead code.

Signed-off-by: Andreas Gruenbacher &lt;agruenba@redhat.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Cc: Artem Bityutskiy &lt;dedekind1@gmail.com&gt;
Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;
Cc: linux-mtd@lists.infradead.org
Cc: Subodh Nijsure &lt;snijsure@grid-net.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'upstream-4.4-rc1' of git://git.infradead.org/linux-ubifs</title>
<updated>2015-11-11T00:35:06+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-11-11T00:35:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=01504f5e9e071f1dde1062e3be15f54d4555308f'/>
<id>01504f5e9e071f1dde1062e3be15f54d4555308f</id>
<content type='text'>
Pull UBI/UBIFS updates from Richard Weinberger:

 - access time support for UBIFS by Dongsheng Yang

 - random cleanups and bug fixes all over the place

* tag 'upstream-4.4-rc1' of git://git.infradead.org/linux-ubifs:
  ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs
  ubifs: make ubifs_[get|set]xattr atomic
  UBIFS: Delete unnecessary checks before the function call "iput"
  UBI: Remove in vain semicolon
  UBI: Fastmap: Fix PEB array type
  UBIFS: Fix possible memory leak in ubifs_readdir()
  fs/ubifs: remove unnecessary new_valid_dev check
  ubi: fastmap: Implement produce_free_peb()
  UBIFS: print verbose message when rescanning a corrupted node
  UBIFS: call dbg_is_power_cut() instead of reading c-&gt;dbg-&gt;pc_happened
  UBI: drop null test before destroy functions
  UBI: Update comments to reflect UBI_METAONLY flag
  UBI: Fix debug message
  UBI: Fix typo in comment
  UBI: Fastmap: Simplify expression
  UBIFS: fix a typo in comment of ubifs_budget_req
  UBIFS: use kmemdup rather than duplicating its implementation
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull UBI/UBIFS updates from Richard Weinberger:

 - access time support for UBIFS by Dongsheng Yang

 - random cleanups and bug fixes all over the place

* tag 'upstream-4.4-rc1' of git://git.infradead.org/linux-ubifs:
  ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs
  ubifs: make ubifs_[get|set]xattr atomic
  UBIFS: Delete unnecessary checks before the function call "iput"
  UBI: Remove in vain semicolon
  UBI: Fastmap: Fix PEB array type
  UBIFS: Fix possible memory leak in ubifs_readdir()
  fs/ubifs: remove unnecessary new_valid_dev check
  ubi: fastmap: Implement produce_free_peb()
  UBIFS: print verbose message when rescanning a corrupted node
  UBIFS: call dbg_is_power_cut() instead of reading c-&gt;dbg-&gt;pc_happened
  UBI: drop null test before destroy functions
  UBI: Update comments to reflect UBI_METAONLY flag
  UBI: Fix debug message
  UBI: Fix typo in comment
  UBI: Fastmap: Simplify expression
  UBIFS: fix a typo in comment of ubifs_budget_req
  UBIFS: use kmemdup rather than duplicating its implementation
</pre>
</div>
</content>
</entry>
<entry>
<title>ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs</title>
<updated>2015-11-07T10:35:08+00:00</updated>
<author>
<name>Dongsheng Yang</name>
<email>yangds.fnst@cn.fujitsu.com</email>
</author>
<published>2015-11-07T04:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8c1c5f263833ec2dc8fd716cf4281265c485d7ad'/>
<id>8c1c5f263833ec2dc8fd716cf4281265c485d7ad</id>
<content type='text'>
To make ubifs support atime flexily, this commit introduces
a Kconfig option named as UBIFS_ATIME_SUPPORT.

With UBIFS_ATIME_SUPPORT=n:
	ubifs keeps the full compatibility to no_atime from
the start of ubifs.

=================UBIFS_ATIME_SUPPORT=n=======================
-o - no atime
-o atime - no atime
-o noatime - no atime
-o relatime - no atime
-o strictatime - no atime
-o lazyatime - no atime

With UBIFS_ATIME_SUPPORT=y:
	ubifs supports the atime same with other main stream
file systems.
=================UBIFS_ATIME_SUPPORT=y=======================
-o - default behavior (relatime currently)
-o atime - atime support
-o noatime - no atime support
-o relatime - relative atime support
-o strictatime - strict atime support
-o lazyatime - lazy atime support

Signed-off-by: Dongsheng Yang &lt;yangds.fnst@cn.fujitsu.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make ubifs support atime flexily, this commit introduces
a Kconfig option named as UBIFS_ATIME_SUPPORT.

With UBIFS_ATIME_SUPPORT=n:
	ubifs keeps the full compatibility to no_atime from
the start of ubifs.

=================UBIFS_ATIME_SUPPORT=n=======================
-o - no atime
-o atime - no atime
-o noatime - no atime
-o relatime - no atime
-o strictatime - no atime
-o lazyatime - no atime

With UBIFS_ATIME_SUPPORT=y:
	ubifs supports the atime same with other main stream
file systems.
=================UBIFS_ATIME_SUPPORT=y=======================
-o - default behavior (relatime currently)
-o atime - atime support
-o noatime - no atime support
-o relatime - relative atime support
-o strictatime - strict atime support
-o lazyatime - lazy atime support

Signed-off-by: Dongsheng Yang &lt;yangds.fnst@cn.fujitsu.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ubifs: make ubifs_[get|set]xattr atomic</title>
<updated>2015-11-07T10:33:17+00:00</updated>
<author>
<name>Dongsheng Yang</name>
<email>yangds.fnst@cn.fujitsu.com</email>
</author>
<published>2015-08-18T04:38:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ab92a20bce3b4c21927cc1ae514c482f50ad3487'/>
<id>ab92a20bce3b4c21927cc1ae514c482f50ad3487</id>
<content type='text'>
This commit make the ubifs_[get|set]xattr protected by ui_mutex.

Originally, there is a possibility that ubifs_getxattr to get
a wrong value.

  P1                                  P2
----------                  	----------
ubifs_getxattr                      ubifs_setxattr
					- kfree()
- memcpy()
					- kmemdup()

Then ubifs_getxattr() would get a non-sense data. To solve this
problem, this commit make the xattr of ubifs_inode updated in
atomic.

Signed-off-by: Dongsheng Yang &lt;yangds.fnst@cn.fujitsu.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit make the ubifs_[get|set]xattr protected by ui_mutex.

Originally, there is a possibility that ubifs_getxattr to get
a wrong value.

  P1                                  P2
----------                  	----------
ubifs_getxattr                      ubifs_setxattr
					- kfree()
- memcpy()
					- kmemdup()

Then ubifs_getxattr() would get a non-sense data. To solve this
problem, this commit make the xattr of ubifs_inode updated in
atomic.

Signed-off-by: Dongsheng Yang &lt;yangds.fnst@cn.fujitsu.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>UBIFS: Delete unnecessary checks before the function call "iput"</title>
<updated>2015-11-06T22:26:52+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2015-11-04T19:00:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=54bcfdf19ec7c2f2788fa76426c91abdc4dab973'/>
<id>54bcfdf19ec7c2f2788fa76426c91abdc4dab973</id>
<content type='text'>
The iput() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The iput() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>UBIFS: Fix possible memory leak in ubifs_readdir()</title>
<updated>2015-11-06T22:26:49+00:00</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2015-10-12T21:35:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=aeeb14f763917ccf639a602cfbeee6957fd944a2'/>
<id>aeeb14f763917ccf639a602cfbeee6957fd944a2</id>
<content type='text'>
If ubifs_tnc_next_ent() returns something else than -ENOENT
we leak file-&gt;private_data.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Reviewed-by: David Gstir &lt;david@sigma-star.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If ubifs_tnc_next_ent() returns something else than -ENOENT
we leak file-&gt;private_data.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Reviewed-by: David Gstir &lt;david@sigma-star.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs/ubifs: remove unnecessary new_valid_dev check</title>
<updated>2015-11-06T22:26:48+00:00</updated>
<author>
<name>Yaowei Bai</name>
<email>bywxiaobai@163.com</email>
</author>
<published>2015-09-29T13:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=86ba9ed928f33cf6afbac433ff03dd8c6a0ceac4'/>
<id>86ba9ed928f33cf6afbac433ff03dd8c6a0ceac4</id>
<content type='text'>
As currently new_valid_dev always returns 1, so new_valid_dev check is not
needed, remove it.

Signed-off-by: Yaowei Bai &lt;bywxiaobai@163.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As currently new_valid_dev always returns 1, so new_valid_dev check is not
needed, remove it.

Signed-off-by: Yaowei Bai &lt;bywxiaobai@163.com&gt;
Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
</pre>
</div>
</content>
</entry>
</feed>
