fw_cfg: prohibit insertion of duplicate fw_cfg file names
commit0eb973f91521c6bcb6399d25327711d083f6eb10
authorGabriel L. Somlo <somlo@cmu.edu>
Wed, 29 Apr 2015 15:21:52 +0000 (29 11:21 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 10 Jun 2015 06:00:37 +0000 (10 08:00 +0200)
tree3c9017165a05ed9f72b2371ff2c931f6029065ac
parent0f9b214139d11ef058fa0f1c11c89e94fa6ef95d
fw_cfg: prohibit insertion of duplicate fw_cfg file names

Exit with an error (instead of simply logging a trace event)
whenever the same fw_cfg file name is added multiple times via
one of the fw_cfg_add_file[_callback]() host-side API calls.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/nvram/fw_cfg.c
trace-events