aio: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Nov 2013 07:49:40 +0000 (10:49 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Nov 2013 12:30:53 +0000 (07:30 -0500)
commit7f62656be8a8ef14c168db2d98021fb9c8cc1076
tree5377034782018dbac0aebb95a1f7e106ca7b6841
parent42a2d923cc349583ebf6fdd52a7d35e1c2f7e6bd
aio: checking for NULL instead of IS_ERR

alloc_anon_inode() returns an ERR_PTR(), it doesn't return NULL.

Fixes: 71ad7490c1f3 ('rework aio migrate pages to use aio fs')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c