Take care of NULL chip_ops->name
Change-Id: I62b1c497d23ec2241efb963e7834728085824016 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/1565 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
e5fe3acb5a
commit
9c9eb8cbc9
|
@ -278,7 +278,8 @@ static int smbios_walk_device_tree(device_t tree, int *handle, unsigned long *cu
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
||||||
for(dev = tree; dev; dev = dev->next) {
|
for(dev = tree; dev; dev = dev->next) {
|
||||||
printk(BIOS_INFO, "%s (%s)\n", dev_path(dev), dev->chip_ops ? dev->chip_ops->name : "");
|
printk(BIOS_INFO, "%s (%s)\n", dev_path(dev),
|
||||||
|
(dev->chip_ops && dev->chip_ops->name) ? dev->chip_ops->name : "");
|
||||||
|
|
||||||
if (dev->ops && dev->ops->get_smbios_data)
|
if (dev->ops && dev->ops->get_smbios_data)
|
||||||
len += dev->ops->get_smbios_data(dev, handle, current);
|
len += dev->ops->get_smbios_data(dev, handle, current);
|
||||||
|
|
Loading…
Reference in New Issue