]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm cache: fix missing ERR_PTR returns and handling
authorJoe Thornber <ejt@redhat.com>
Wed, 28 Jan 2015 12:07:46 +0000 (12:07 +0000)
committerJiri Slaby <jslaby@suse.cz>
Sun, 8 Feb 2015 19:02:02 +0000 (20:02 +0100)
commit4aaf18dbeca6b5519645e1e9dd34adf101410c4f
tree408d2994b46e32267db706e59af5e47bb5dec54c
parent5702185d1032c7d34adf38eb40e82dd0a474cdfc
dm cache: fix missing ERR_PTR returns and handling

commit 766a78882ddf79b162243649d7dfdbac1fb6fb88 upstream.

Commit 9b1cc9f251 ("dm cache: share cache-metadata object across
inactive and active DM tables") mistakenly ignored the use of ERR_PTR
returns.  Restore missing IS_ERR checks and ERR_PTR returns where
appropriate.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm-cache-metadata.c