aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/ftl.c
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2010-03-19 07:44:33 +0000
committerDave Airlie <airlied@redhat.com>2010-03-31 13:11:53 +1000
commitfcbc451ba1948fba967198bd150ecbd10bbb7075 (patch)
tree71e75d0a64a492261df05c4ead7b29cfd209d715 /drivers/mtd/ftl.c
parentf9274562026558ab54a29331cf13e9ebec8cc890 (diff)
drm/radeon/kms: Fix NULL pointer dereference if memory allocation failed.
When there is allocation failure in radeon_cs_parser_relocs parser->nrelocs is not cleaned. This causes NULL pointer defeference in radeon_cs_parser_fini when clean up code is trying to loop over the relocation array and free the objects. Fix adds a check for a possible NULL pointer in clean up code. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/mtd/ftl.c')
0 files changed, 0 insertions, 0 deletions