Skip to content
Commit 93d53f1c authored by Pei Xiao's avatar Pei Xiao Committed by Kent Overstreet
Browse files

bcachefs: add check NULL return of bio_kmalloc in journal_read_bucket



bio_kmalloc may return NULL, will cause NULL pointer dereference.
Add check NULL return for bio_kmalloc in journal_read_bucket.

Signed-off-by: default avatarPei Xiao <xiaopei01@kylinos.cn>
Fixes: ac10a961 ("bcachefs: Some fixes for building in userspace")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ef4f6c32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment