diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-04-09 22:20:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-04-09 22:20:59 -0400 |
commit | 972acfb49446b30a3533ceb5682bf8350c786bc8 (patch) | |
tree | 27f194c8b6e171bb800bfd611b8c7529ddff10b5 /fs | |
parent | 869e3305f23dfeacdaa234717c92ccb237815d90 (diff) | |
parent | 6af1c849dfb1f1d326fbdd157c9bc882b921f450 (diff) |
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc fixes from Al Viro:
"A few regression fixes from this cycle"
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
aio: use kmem_cache_free() instead of kfree()
iov_iter: Fix build error without CONFIG_CRYPTO
aio: Fix an error code in __io_submit_one()
Diffstat (limited to 'fs')
-rw-r--r-- | fs/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1034,7 +1034,7 @@ static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx) | |||
1034 | return NULL; | 1034 | return NULL; |
1035 | 1035 | ||
1036 | if (unlikely(!get_reqs_available(ctx))) { | 1036 | if (unlikely(!get_reqs_available(ctx))) { |
1037 | kfree(req); | 1037 | kmem_cache_free(kiocb_cachep, req); |
1038 | return NULL; | 1038 | return NULL; |
1039 | } | 1039 | } |
1040 | 1040 | ||
@@ -1794,7 +1794,7 @@ static int __io_submit_one(struct kioctx *ctx, const struct iocb *iocb, | |||
1794 | */ | 1794 | */ |
1795 | eventfd = eventfd_ctx_fdget(iocb->aio_resfd); | 1795 | eventfd = eventfd_ctx_fdget(iocb->aio_resfd); |
1796 | if (IS_ERR(eventfd)) | 1796 | if (IS_ERR(eventfd)) |
1797 | return PTR_ERR(req->ki_eventfd); | 1797 | return PTR_ERR(eventfd); |
1798 | 1798 | ||
1799 | req->ki_eventfd = eventfd; | 1799 | req->ki_eventfd = eventfd; |
1800 | } | 1800 | } |