Re: [PATCH] libceph: potential NULL dereference in ceph_msg_data_create()

2017-07-17 Thread Ilya Dryomov
On Mon, Jul 17, 2017 at 10:13 AM, Dan Carpenter wrote: > 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 me

[PATCH] libceph: potential NULL dereference in ceph_msg_data_create()

2017-07-17 Thread Dan Carpenter
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 dif