]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:36:06 +0000 (22:36 -0800)
commitbc8eeafab3b7e4f79ea422d50753160a005f4e15
treed36d9170b7769a988aaa2e8be28d4f7d84a9fef4
parente046f3ddf3568776755e165baffb8067125511dc
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-cache-metadata.c