diff options
| author | Colin Ian King <[email protected]> | 2021-08-29 18:18:24 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2021-09-03 08:55:51 +0000 |
| commit | 05a444d3f90a3c3e6362e88a1bf13e1a60f8cace (patch) | |
| tree | c8c903b6b92af9be2cfaa031f2569508f81087bd /lib/test_overflow.c | |
| parent | ceph: drop the mdsc_get_session/put_session dout messages (diff) | |
| download | kernel-05a444d3f90a3c3e6362e88a1bf13e1a60f8cace.tar.gz kernel-05a444d3f90a3c3e6362e88a1bf13e1a60f8cace.zip | |
ceph: fix dereference of null pointer cf
Currently in the case where kmem_cache_alloc fails the null pointer
cf is dereferenced when assigning cf->is_capsnap = false. Fix this
by adding a null pointer check and return path.
Cc: [email protected]
Addresses-Coverity: ("Dereference null return")
Fixes: b2f9fa1f3bd8 ("ceph: correctly handle releasing an embedded cap flush")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Ilya Dryomov <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions
