Message ID | 20171031230206.32731-3-jsnow@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/2] hw/ide/ahci: Move allwinner code into a separate file | expand |
diff --git a/hw/ide/core.c b/hw/ide/core.c index a04766a..471d0c9 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -208,7 +208,9 @@ static void ide_identify(IDEState *s) if (dev && dev->conf.discard_granularity) { put_le16(p + 169, 1); /* TRIM support */ } - put_le16(p + 217, dev->rotation_rate); /* Nominal media rotation rate */ + if (dev) { + put_le16(p + 217, dev->rotation_rate); /* Nominal media rotation rate */ + } ide_identify_size(s); s->identify_set = 1;