diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-17 15:20:23 +0530 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-10-10 03:30:56 +0100 |
commit | cd2ff82610f26dc1817effaed4627907fbe28079 (patch) | |
tree | 43dc7e903f7359d481be4b32cc025c500c90cdfb /net/lapb/lapb_iface.c | |
parent | d912bb414b168204391f4a0fa8ae2e814c770fe8 (diff) |
DMA: PL330: Check the pointer returned by kzalloc
commit 61c6e7531d3b66b33187b8cdd700fd8ab93ffd62 upstream.
kzalloc could return NULL. Hence add a check to avoid
NULL pointer dereference.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
[bwh: Backported to 3.2: adjust context and error label]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions