]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
fat: cleanup fat_parse_long() error handling
authorDarren Jenkins <darrenrjenkins@gmail.com>
Thu, 6 Nov 2008 20:53:48 +0000 (12:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Nov 2008 23:41:20 +0000 (15:41 -0800)
commit52e9d9f4b32a3bec91feb76c84e37b7dcffe5040
tree00720ba55750b14ad8e48c3953577b636ec67404
parent53472bc8f810d2fb507593ea03703670506a668d
fat: cleanup fat_parse_long() error handling

Coverity CID 2332 & 2333 RESOURCE_LEAK

In fat_search_long() if fat_parse_long() returns a -ve value we return
without first freeing unicode.  This patch free's them on this error path.

The above was false positive on current tree, but this change is more
clean, so apply as cleanup.

[hirofumi@mail.parknet.co.jp: fix coding style]
Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/dir.c