aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBoris Burkov <[email protected]>2025-04-25 19:47:50 +0000
committerDavid Sterba <[email protected]>2025-05-02 11:20:08 +0000
commitd6fe0c69b3aa5c985380b794bdf8e6e9b1811e60 (patch)
tree19a7eb1f2a1247de576fde5badb67c0ee7a1f2b7 /net/unix/af_unix.c
parentbtrfs: correct the order of prelim_ref arguments in btrfs__prelim_ref (diff)
downloadkernel-d6fe0c69b3aa5c985380b794bdf8e6e9b1811e60.tar.gz
kernel-d6fe0c69b3aa5c985380b794bdf8e6e9b1811e60.zip
btrfs: handle empty eb->folios in num_extent_folios()
num_extent_folios() unconditionally calls folio_order() on eb->folios[0]. If that is NULL this will be a segfault. It is reasonable for it to return 0 as the number of folios in the eb when the first entry is NULL, so do that instead. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Boris Burkov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions