On 3/23/2021 7:55 PM, Jason Gunthorpe wrote:
This can fail, and seems to be a popular target for syzkaller error injection. Check the error return and unwind with put_device(). Fixes: 7b96953bc640 ("vfio: Mediated device Core driver") Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> --- drivers/vfio/mdev/mdev_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Looks good, Reviewed-by: Max Gurtovoy <mgurtovoy@xxxxxxxxxx>