Skip to content

Commit

Permalink
V4L/DVB (3086): vfree(NULL) is legal.
Browse files Browse the repository at this point in the history
- vfree(NULL) is legal.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent f5b90a2 commit 35dc0fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/dvb/dvb-core/dvb_ca_en50221.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,9 +1745,7 @@ 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);
}
vfree(ca->slot_info[i].rx_buffer.data);
}
kfree(ca->slot_info);
dvb_unregister_device(ca->dvbdev);
Expand Down

0 comments on commit 35dc0fe

Please sign in to comment.