diff options
| author | Dan Carpenter <[email protected]> | 2011-02-15 07:10:08 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2011-03-21 20:32:36 -0300 |
| commit | 07988007f8dd2827ba1eb39e6e3c5bbb29cfc30b (patch) | |
| tree | 9ddac7f907a90e7ca9e433122c058ecf80c82c77 /tools/perf/scripts/python | |
| parent | 57f05bfa2e90fe52fa36755f4cb91e6f495f8353 (diff) | |
[media] stv090x: handle allocation failures
kmalloc() can fail so check whether state->internal is NULL.
append_internal() can return NULL on allocation failures so check that.
Also if we hit the error condition later in the function then there is
a memory leak and we need to call remove_dev() to fix it.
Also Oliver Endriss pointed out an additional leak that I missed in the
first version of this patch.
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Oliver Endriss <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions