Commit 19032628 authored by Kunwu Chan's avatar Kunwu Chan Committed by Alex Williamson
Browse files

vfio/pci: WARN_ON driver_override kasprintf failure



kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

This is a blocking notifier callback, so errno isn't a proper return
value. Use WARN_ON to small allocation failures.

Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240115063434.20278-1-chentao@kylinos.cn


Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent b401b621
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment