.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver |
---|
3 | 4 | |
---|
.. | .. |
---|
9 | 10 | TBS6980 - Dual DVBS/S2 PCIe card |
---|
10 | 11 | TBS6981 - Dual DVBS/S2 PCIe card |
---|
11 | 12 | |
---|
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. |
---|
25 | 13 | */ |
---|
26 | 14 | |
---|
27 | 15 | #include <linux/slab.h> |
---|
.. | .. |
---|
631 | 619 | |
---|
632 | 620 | /* send fw */ |
---|
633 | 621 | ret = i2c_transfer(state->priv->i2c, &msg, 1); |
---|
634 | | - if (ret < 0) |
---|
| 622 | + if (ret < 0) { |
---|
| 623 | + kfree(buf); |
---|
635 | 624 | return ret; |
---|
| 625 | + } |
---|
636 | 626 | |
---|
637 | 627 | kfree(buf); |
---|
638 | 628 | |
---|