Commit 0c0b205
s390/ctcm: fix potential memory leak
smatch complains about
drivers/s390/net/ctcm_mpc.c:1210 ctcmpc_unpack_skb() warn: possible memory leak of 'mpcginfo'
mpc_action_discontact() did not free mpcginfo. Consolidate the freeing in
ctcmpc_unpack_skb().
Fixes: 293d984 ("ctcm: infrastructure for replaced ctc driver")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 2c50c68 commit 0c0b205
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | | - | |
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
| |||
1192 | 1190 | | |
1193 | 1191 | | |
1194 | 1192 | | |
1195 | | - | |
1196 | 1193 | | |
1197 | 1194 | | |
1198 | 1195 | | |
| 1196 | + | |
1199 | 1197 | | |
1200 | 1198 | | |
1201 | 1199 | | |
| |||
1977 | 1975 | | |
1978 | 1976 | | |
1979 | 1977 | | |
1980 | | - | |
1981 | 1978 | | |
1982 | 1979 | | |
1983 | 1980 | | |
| |||
2038 | 2035 | | |
2039 | 2036 | | |
2040 | 2037 | | |
2041 | | - | |
2042 | 2038 | | |
2043 | 2039 | | |
2044 | 2040 | | |
| |||
0 commit comments