Skip to content
Commit 2f089cb8 authored by Felipe Pena's avatar Felipe Pena Committed by Konrad Rzeszutek Wilk
Browse files

block: xen-blkfront: Fix possible NULL ptr dereference



In the blkif_release function the bdget_disk() call might returns
a NULL ptr which might be dereferenced on bdev->bd_openers checking

Signed-off-by: default avatarFelipe Pena <felipensp@gmail.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[v2: Added WARN per Roger's suggestion]
parent 427bfe07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment