Commit b571e81
committed
btrfs-progs: handle readdir() end in get_first_device_zone_size()
readdir() could potentially return NULL in case there's no device in
the directory, which is unlikely but should be handled. Reported by
CodeQL scan.
Signed-off-by: David Sterba <dsterba@suse.com>1 parent cf98ee7 commit b571e81
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
0 commit comments