[Top][All Lists]
[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:18:56 +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 07:27, 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.
Which would be a clear bug in the bus implementation.
+ if (!dev->info->unplug) {
assert(dev->info->unplug != NULL) ?
cheers,
Gerd