]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
reiserfs: fix dereference of ERR_PTR
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 22 Jan 2016 00:40:36 +0000 (16:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Jan 2016 01:20:51 +0000 (17:20 -0800)
commitff7d080e528d8faf5bc175fd9909889af03e1566
tree19acc35320f42bab238da12f98ce2b603adccff4
parentc2594bc37f4464bc74f2c119eb3269a643400aa0
reiserfs: fix dereference of ERR_PTR

reiserfs_iget() returns either NULL or error code in ERR_PTR.  And we
were only checking for NULL, so in case of some other error we will try
to dereference the ERR_PTR(-errno) thinking it to be a valid pointer.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/super.c