hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/cx24117.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver
34
....@@ -9,19 +10,6 @@
910 TBS6980 - Dual DVBS/S2 PCIe card
1011 TBS6981 - Dual DVBS/S2 PCIe card
1112
12
- This program is free software; you can redistribute it and/or modify
13
- it under the terms of the GNU General Public License as published by
14
- the Free Software Foundation; either version 2 of the License, or
15
- (at your option) any later version.
16
-
17
- This program is distributed in the hope that it will be useful,
18
- but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- GNU General Public License for more details.
21
-
22
- You should have received a copy of the GNU General Public License
23
- along with this program; if not, write to the Free Software
24
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2513 */
2614
2715 #include <linux/slab.h>
....@@ -631,8 +619,10 @@
631619
632620 /* send fw */
633621 ret = i2c_transfer(state->priv->i2c, &msg, 1);
634
- if (ret < 0)
622
+ if (ret < 0) {
623
+ kfree(buf);
635624 return ret;
625
+ }
636626
637627 kfree(buf);
638628