mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
V4L/DVB (3086): vfree(NULL) is legal.
- vfree(NULL) is legal. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
This commit is contained in:
parent
f5b90a27ff
commit
35dc0fefb1
1 changed files with 1 additions and 3 deletions
|
@ -1745,10 +1745,8 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
|
|||
|
||||
for (i = 0; i < ca->slot_count; i++) {
|
||||
dvb_ca_en50221_slot_shutdown(ca, i);
|
||||
if (ca->slot_info[i].rx_buffer.data != NULL) {
|
||||
vfree(ca->slot_info[i].rx_buffer.data);
|
||||
}
|
||||
}
|
||||
kfree(ca->slot_info);
|
||||
dvb_unregister_device(ca->dvbdev);
|
||||
kfree(ca);
|
||||
|
|
Loading…
Reference in a new issue