]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: checking for IS_ERR instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Jan 2016 09:24:44 +0000 (12:24 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 Feb 2016 17:25:08 +0000 (18:25 +0100)
commit94770a5d0317dccbd66266102c00ed615b889106
tree94adc36a2fbc50aa8bdd82c2e8f4c89f696b6c91
parent87769ffbad1a15e849b568d4bb3ecd9e274ee8b0
ceph: checking for IS_ERR instead of NULL

ceph_osdc_alloc_request() returns NULL on error, it never returns error
pointers.

Fixes: dc6555c39277 ('ceph: re-send AIO write request when getting -EOLDSNAP error')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c