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)
committerMike Snitzer <snitzer@redhat.com>
Wed, 28 Jan 2015 14:59:20 +0000 (09:59 -0500)
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>
Cc: stable@vger.kernel.org

No differences found