commit | 7c40b22f6f84c98a1d36e6d0a4346e58f05e45d8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Jul 17 11:13:35 2017 +0300 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Jul 17 14:54:59 2017 +0200 |
tree | 83ca96fd7f28d2efc8ba8fa8dcabc37a3ba82ba1 | |
parent | 84583cfb973c4313955c6231cc9cb3772d280b15 [diff] |
libceph: potential NULL dereference in ceph_msg_data_create() If kmem_cache_zalloc() returns NULL then the INIT_LIST_HEAD(&data->links); will Oops. The callers aren't really prepared for NULL returns so it doesn't make a lot of difference in real life. Fixes: 5240d9f95dfe ("libceph: replace message data pointer with list") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>