audio/hda: fix guest triggerable assert
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Nov 2018 06:39:57 +0000 (07:39 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 27 Nov 2018 06:47:57 +0000 (07:47 +0100)
commit7ec910675929a593c9890f412125c31c578cde6e
tree9da6f05703d37f5fd208457b81e069300cc2ff92
parentb7ee9e4970bd76ca181ae6ea853c350e039eb71d
audio/hda: fix guest triggerable assert

Guest writes to a readonly register trigger the assert in
intel_hda_reg_write().  Add a check and just ignore them.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1628433
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181123063957.9515-1-kraxel@redhat.com
hw/audio/intel-hda.c