There is a null-ptr-deref bug in strchr() of device_add(), if the kstrdup() fails in kobject_set_name_vargs() in dev_set_name(). This patchset fix the issues. Jinjie Ruan (3): vfio/mdpy: Fix the null-ptr-deref bug in mdpy_dev_init() vfio/mtty: Fix the null-ptr-deref bug in mtty_dev_init() vfio/mbochs: Fix the null-ptr-deref bug in mbochs_dev_init() samples/vfio-mdev/mbochs.c | 4 +++- samples/vfio-mdev/mdpy.c | 4 +++- samples/vfio-mdev/mtty.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) -- 2.34.1