Commit 2d52e2e
net: lan743x: Fix memleak issue when GSO enabled
Always map the `skb` to the LS descriptor. Previously skb was
mapped to EXT descriptor when the number of fragments is zero with
GSO enabled. Mapping the skb to EXT descriptor prevents it from
being freed, leading to a memory leak
Fixes: 23f0703 ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Thangaraj Samynathan <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent e98386d commit 2d52e2e
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
| 1818 | + | |
1818 | 1819 | | |
1819 | 1820 | | |
1820 | 1821 | | |
| |||
1884 | 1885 | | |
1885 | 1886 | | |
1886 | 1887 | | |
| 1888 | + | |
1887 | 1889 | | |
1888 | 1890 | | |
1889 | 1891 | | |
| |||
1924 | 1926 | | |
1925 | 1927 | | |
1926 | 1928 | | |
| 1929 | + | |
1927 | 1930 | | |
1928 | 1931 | | |
1929 | | - | |
1930 | | - | |
| 1932 | + | |
| 1933 | + | |
1931 | 1934 | | |
1932 | 1935 | | |
1933 | 1936 | | |
1934 | 1937 | | |
1935 | 1938 | | |
1936 | 1939 | | |
| 1940 | + | |
1937 | 1941 | | |
1938 | 1942 | | |
1939 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
| 983 | + | |
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
| |||
0 commit comments