aboutsummaryrefslogtreecommitdiff
path: root/Documentation/filesystems/caching/cachefiles.rst
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2024-10-26 18:26:58 +0800
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-29 06:34:10 -0400
commitca959e328b2243687aa0b95de01414d13e4f3ade (patch)
treea8fdb159b4254f9ad25c5069f9efcb25e65d58de /Documentation/filesystems/caching/cachefiles.rst
parent778ac324ccfad7b941bba604118e38a19800657b (diff)
downloadlinux-ca959e328b2243687aa0b95de01414d13e4f3ade.tar.gz
linux-ca959e328b2243687aa0b95de01414d13e4f3ade.tar.bz2
linux-ca959e328b2243687aa0b95de01414d13e4f3ade.zip
bcachefs: fix possible null-ptr-deref in __bch2_ec_stripe_head_get()
The function ec_new_stripe_head_alloc() returns nullptr if kzalloc() fails. It is crucial to verify its return value before dereferencing it to avoid a potential nullptr dereference. Fixes: 035d72f72c91 ("bcachefs: bch2_ec_stripe_head_get() now checks for change in rw devices") Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'Documentation/filesystems/caching/cachefiles.rst')
0 files changed, 0 insertions, 0 deletions