On 06/10/2017 02:04 AM, Zhengui Li wrote: > Avoid empty pointer access if the bs is NULL. > > Signed-off-by: Zhengui Li <lizhen...@huawei.com> > --- > block/io.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-)
NACK; this is fixing a symptom, not the problem. If you have a coredump due to a bad caller passing in NULL, then post the backtrace and let's fix the broken caller instead. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature