diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-13 17:58:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:55:56 -0300 |
commit | 8afe9119e25809b044d9b5afbe2fb2853a5bd10c (patch) | |
tree | a2ef6825898f52343b6e7412f02063d56dc4fb9e /drivers/crypto/picoxcell_crypto_regs.h | |
parent | 9b67693ccf23eb9cc57dd364f515057860a1f339 (diff) |
[media] media, Micronas dvb-t: Fix mem leaks, don't needlessly zero mem, fix spelling
In drivers/media/dvb/frontends/drxd_hard.c::load_firmware() I see 3
small issues:
1) When the 'fw' variable goes out of scope we'll leak the memory
allocated to it by request_firmware() by neglecting to call
release_firmware().
2) After a successful request_firmware() we allocate fw->size bytes
of memory using kzalloc() only to immediately overwrite all that
memory with memcpy(), so asking for zeroed memory seems like wasted
effort - just use kmalloc().
3) In one of the error messages "no memory" lacks a space and is
written as "nomemory".
This patch fixes all 3 issues.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/crypto/picoxcell_crypto_regs.h')
0 files changed, 0 insertions, 0 deletions