Commit fb05028
ntfs: fix variable dereferenced before check warnings
Detected by Smatch.
lcnalloc.c:736 ntfs_cluster_alloc() error:
we previously assumed 'rl' could be null (see line 719)
inode.c:3275 ntfs_inode_close() warn:
variable dereferenced before check 'tmp_nis' (see line 3255)
attrib.c:4952 ntfs_attr_remove() warn:
variable dereferenced before check 'ni' (see line 4951)
dir.c:1035 ntfs_readdir() error:
we previously assumed 'private' could be null (see line 850)
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent 8ea50d3 commit fb05028
5 files changed
Lines changed: 16 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4941 | 4941 | | |
4942 | 4942 | | |
4943 | 4943 | | |
4944 | | - | |
4945 | 4944 | | |
4946 | 4945 | | |
4947 | 4946 | | |
4948 | 4947 | | |
4949 | 4948 | | |
4950 | 4949 | | |
4951 | | - | |
4952 | | - | |
4953 | | - | |
| 4950 | + | |
4954 | 4951 | | |
4955 | | - | |
4956 | 4952 | | |
4957 | 4953 | | |
4958 | 4954 | | |
4959 | 4955 | | |
4960 | | - | |
| 4956 | + | |
4961 | 4957 | | |
4962 | 4958 | | |
4963 | 4959 | | |
4964 | 4960 | | |
4965 | 4961 | | |
4966 | 4962 | | |
4967 | 4963 | | |
4968 | | - | |
| 4964 | + | |
4969 | 4965 | | |
4970 | 4966 | | |
4971 | 4967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1037 | 1039 | | |
1038 | 1040 | | |
1039 | 1041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3250 | 3250 | | |
3251 | 3251 | | |
3252 | 3252 | | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
3253 | 3256 | | |
3254 | | - | |
3255 | 3257 | | |
3256 | 3258 | | |
3257 | 3259 | | |
| |||
3279 | 3281 | | |
3280 | 3282 | | |
3281 | 3283 | | |
| 3284 | + | |
3282 | 3285 | | |
3283 | 3286 | | |
3284 | 3287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
735 | 739 | | |
736 | 740 | | |
737 | 741 | | |
738 | | - | |
739 | | - | |
740 | 742 | | |
741 | 743 | | |
742 | 744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
1664 | | - | |
| 1664 | + | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| |||
0 commit comments