]> git.ipfire.org Git - thirdparty/libvirt.git/commit
check if console/channel PTY is null before attempting to open
authorShivaprasad G Bhat <shivaprasadbhat@gmail.com>
Sun, 31 May 2015 15:55:59 +0000 (21:25 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Jun 2015 16:13:06 +0000 (18:13 +0200)
commiteac9445e40c47e4b2c2dfeceb6136234ca6505fa
treea8d335d6be47b3d62408019a599a3353171cc643
parent81b19ce46a9a65a00481403b8c0b15a8ac1367f2
check if console/channel PTY is null before attempting to open

Console/channel devices have their pty devices assigned when the emulator is
actually started. If time is spent in guest preparation, someone attempts
to open the console/channel, the libvirt crashes in virChrdevLockFilePath().
The patch attempts to fix the crash by adding a check before attempting to
open.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
src/conf/virchrdev.c