On Tue, 23 Mar 2021 14:55:26 -0300 Jason Gunthorpe <jgg@xxxxxxxxxx> 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(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>