Re: [PATCH] snic: Return error code on memory allocation failure

2017-01-05 Thread Martin K. Petersen
> "Burak" == Burak Ok writes: Burak> If a call to mempool_create_slab_pool() in snic_probe() returns Burak> NULL, return -ENOMEM to indicate Burak> failure. mempool_creat_slab_pool() only fails if it cannot Burak> allocate memory. Applied to 4.10/scsi-fixes. -- Martin K. Petersen Orac

Re: [PATCH] snic: Return error code on memory allocation failure

2016-12-21 Thread Ewan D. Milne
On Wed, 2016-12-21 at 14:45 +0100, Burak Ok wrote: > If a call to mempool_create_slab_pool() in snic_probe() returns NULL, > return -ENOMEM to indicate failure. mempool_creat_slab_pool() only fails if > it cannot allocate memory. > > https://bugzilla.kernel.org/show_bug.cgi?id=189061 > > Reported

Re: [PATCH] snic: Return error code on memory allocation failure

2016-12-21 Thread Narsimhulu Musini (nmusini)
On 21/12/16 7:15 pm, "Burak Ok" wrote: >If a call to mempool_create_slab_pool() in snic_probe() returns NULL, >return -ENOMEM to indicate failure. mempool_creat_slab_pool() only fails >if >it cannot allocate memory. > >https://bugzilla.kernel.org/show_bug.cgi?id=189061 > >Reported-by: bianpan2..

[PATCH] snic: Return error code on memory allocation failure

2016-12-21 Thread Burak Ok
If a call to mempool_create_slab_pool() in snic_probe() returns NULL, return -ENOMEM to indicate failure. mempool_creat_slab_pool() only fails if it cannot allocate memory. https://bugzilla.kernel.org/show_bug.cgi?id=189061 Reported-by: bianpan2...@ruc.edu.cn Signed-off-by: Burak Ok Signed-off-b