Re: [RFC][PATCH 2/3] staging: ion: Fix possible null pointer dereference

2013-12-16 Thread John Stultz
On 12/16/2013 04:26 PM, Colin Cross wrote: > On Mon, Dec 16, 2013 at 1:32 PM, John Stultz wrote: >> The kbuild test robot reported: >> >> drivers/staging/android/ion/ion_system_heap.c:122 alloc_largest_available() >> error: potential null dereference 'info'. (kmalloc returns null) >> >> Where th

Re: [RFC][PATCH 2/3] staging: ion: Fix possible null pointer dereference

2013-12-16 Thread Colin Cross
On Mon, Dec 16, 2013 at 1:32 PM, John Stultz wrote: > The kbuild test robot reported: > > drivers/staging/android/ion/ion_system_heap.c:122 alloc_largest_available() > error: potential null dereference 'info'. (kmalloc returns null) > > Where the pointer returned from kmalloc goes unchecked for

Re: [RFC][PATCH 2/3] staging: ion: Fix possible null pointer dereference

2013-12-16 Thread Greg KH
On Mon, Dec 16, 2013 at 01:32:43PM -0800, John Stultz wrote: > The kbuild test robot reported: > > drivers/staging/android/ion/ion_system_heap.c:122 alloc_largest_available() > error: potential null dereference 'info'. (kmalloc returns null) > > Where the pointer returned from kmalloc goes unch

[RFC][PATCH 2/3] staging: ion: Fix possible null pointer dereference

2013-12-16 Thread John Stultz
The kbuild test robot reported: drivers/staging/android/ion/ion_system_heap.c:122 alloc_largest_available() error: potential null dereference 'info'. (kmalloc returns null) Where the pointer returned from kmalloc goes unchecked for failure. This patch adds a simple check for a null return, and