ext4: avoid trying to kfree an ERR_PTR pointer
authorTheodore Ts'o <tytso@mit.edu>
Wed, 3 Sep 2014 13:33:00 +0000 (09:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Sep 2014 13:37:30 +0000 (09:37 -0400)
commita9cfcd63e8d206ce4235c355d857c4fbdf0f4587
treef373a6fdd3347086b50c93ed16d164cb039f8dc1
parentd4f03186c8986ffde34d06fe74a99aab08f7ee0b
ext4: avoid trying to kfree an ERR_PTR pointer

Thanks to Dan Carpenter for extending smatch to find bugs like this.
(This was found using a development version of smatch.)

Fixes: 36de928641ee48b2078d3fe9514242aaa2f92013
Reported-by: Dan Carpenter <dan.carpenter@oracle.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/namei.c
fs/ext4/resize.c