qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qdev: Check if unplug handler exists before cal


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] qdev: Check if unplug handler exists before calling it
Date: Mon, 02 Nov 2009 10:58:18 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

On 11/02/09 10:26, Amit Shah wrote:
A bus may have hotplugging enabled but not have the 'unplug'
callback defined, which would lead to a crash on trying to
unplug a device on the bus.

Fix by introducing an assert to check if the callback is valid.

Signed-off-by: Amit Shah<address@hidden>

Acked-by: Gerd Hoffmann <address@hidden>

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]