diff options
author | Xi Wang <xi.wang@gmail.com> | 2013-06-07 10:08:35 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-06-17 18:17:47 +1000 |
commit | 0fa6990377c82efb6976b42600641b54c7a0fa63 (patch) | |
tree | bc00cd13a938fc2b9c5d53413d2db7c545dcf518 /arch | |
parent | 39b89010ad2a053dae02f35bbae088495d5108e0 (diff) |
mm/dmapool.c: fix null dev in dma_pool_create()
A few drivers invoke dma_pool_create() with a null dev. Note that dev is
dereferenced in dev_to_node(dev), causing a null pointer dereference.
A long term solution is to disallow null dev. Once the drivers are fixed,
we can simplify the core code here. For now we add WARN_ON(!dev) to
notify the driver maintainers and avoid the null pointer dereference.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions