Repository navigation
Commit 9804501
appletalk: Fix potential NULL pointer dereference in unregister_snap_client
register_snap_client may return NULL, all the callers
check it, but only print a warning. This will result in
NULL pointer dereference in unregister_snap_client and other
places.
It has always been used like this since v2.6
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent f261c4e commit 9804501
3 files changed
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
| 882 | + | |
883 | 883 | | |
| 884 | + | |
| 885 | + | |
884 | 886 | | |
885 | | - | |
| 887 | + | |
886 | 888 | | |
| 889 | + | |
| 890 | + | |
887 | 891 | | |
888 | 892 | | |
889 | 893 | | |
890 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
891 | 900 | | |
892 | 901 | | |
893 | 902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1904 | 1904 | | |
1905 | 1905 | | |
1906 | 1906 | | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | 1907 | | |
1911 | 1908 | | |
1912 | 1909 | | |
| |||
1921 | 1918 | | |
1922 | 1919 | | |
1923 | 1920 | | |
1924 | | - | |
1925 | | - | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1926 | 1925 | | |
1927 | 1926 | | |
1928 | 1927 | | |
1929 | 1928 | | |
1930 | 1929 | | |
1931 | 1930 | | |
1932 | | - | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1933 | 1936 | | |
1934 | | - | |
1935 | 1937 | | |
1936 | 1938 | | |
1937 | 1939 | | |
| |||
1945 | 1947 | | |
1946 | 1948 | | |
1947 | 1949 | | |
| 1950 | + | |
1948 | 1951 | | |
1949 | | - | |
| 1952 | + | |
1950 | 1953 | | |
1951 | 1954 | | |
1952 | 1955 | | |
| 1956 | + | |
1953 | 1957 | | |
1954 | 1958 | | |
1955 | 1959 | | |
| |||
0 commit comments