diff options
| author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-11 17:30:50 +0000 |
|---|---|---|
| committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-11 17:30:50 +0000 |
| commit | 85df0de4cfe54fd64df7e37448cd152d0c9199a4 (patch) | |
| tree | e865b431dd992eee1aff4e28d18b7549bf5b0824 /cache-utils.c | |
| parent | f4a5a5ba926ea607904aeb267683d232463cdf76 (diff) | |
| download | focaccia-qemu-85df0de4cfe54fd64df7e37448cd152d0c9199a4.tar.gz focaccia-qemu-85df0de4cfe54fd64df7e37448cd152d0c9199a4.zip | |
Allow to register a callback with fw_cfg_add_callback()
fw_cfg_add_callback() checks if key has FW_CFG_WRITE_CHANNEL bit set after masking the key with FW_CFG_ENTRY_MASK. But as FW_CFG_ENTRY_MASK is ~(FW_CFG_WRITE_CHANNEL | FW_CFG_ARCH_LOCAL), the bit is never set and function exits. This patch corrects this by checking the bit before masking the value. Signed-by-off: Laurent Vivier <Laurent.Vivier@bull.net> Acked-by: Gleb Natapov <gleb@redhat.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5978 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cache-utils.c')
0 files changed, 0 insertions, 0 deletions