Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35dc0fef authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (3086): vfree(NULL) is legal.



- vfree(NULL) is legal.

Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent f5b90a27
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1745,10 +1745,8 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)


	for (i = 0; i < ca->slot_count; i++) {
	for (i = 0; i < ca->slot_count; i++) {
		dvb_ca_en50221_slot_shutdown(ca, 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);
	kfree(ca->slot_info);
	dvb_unregister_device(ca->dvbdev);
	dvb_unregister_device(ca->dvbdev);
	kfree(ca);
	kfree(ca);