Searched hist:cc6b664aa26de93d9a3f99d4021a8d88b434ed06 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | dmapool.c | diff cc6b664aa26de93d9a3f99d4021a8d88b434ed06 Wed Jun 04 18:08:05 CDT 2014 Daeseok Youn <daeseok.youn@gmail.com> mm/dmapool.c: remove redundant NULL check for dev in dma_pool_create()
"dev" cannot be NULL because it is already checked before calling dma_pool_create().
If dev ever was NULL, the code would oops in dev_to_node() after enabling CONFIG_NUMA.
It is possible that some driver is using dev==NULL and has never been run on a NUMA machine. Such a driver is probably outdated, possibly buggy and will need some attention if it starts triggering NULL derefs.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|