ide: avoid referencing NULL dev in rotational rate setting
commit96f43c2b0a663f4789b51ed97297163321e7ba5e
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 20 Oct 2017 09:14:03 +0000 (20 10:14 +0100)
committerJohn Snow <jsnow@redhat.com>
Tue, 31 Oct 2017 22:00:03 +0000 (31 18:00 -0400)
treebda51e676fc1212eb1e5c011665594c5d721e75e
parent2585c67983d726da98fbfb8b742d722c39f885cf
ide: avoid referencing NULL dev in rotational rate setting

The 'dev' variable can be NULL when the guest OS calls identify on an IDE
unit that does not have a drive attached to it.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20171020091403.1479-1-berrange@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c