diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index 29d833e71cbf..05710c7c1220 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -520,8 +520,11 @@ static ssize_t fw_show_drv_device_ids(struct device_driver *drv, char *buf) | |||
520 | char *scratch = buf; | 520 | char *scratch = buf; |
521 | 521 | ||
522 | driver = container_of(drv, struct hpsb_protocol_driver, driver); | 522 | driver = container_of(drv, struct hpsb_protocol_driver, driver); |
523 | id = driver->id_table; | ||
524 | if (!id) | ||
525 | return 0; | ||
523 | 526 | ||
524 | for (id = driver->id_table; id->match_flags != 0; id++) { | 527 | for (; id->match_flags != 0; id++) { |
525 | int need_coma = 0; | 528 | int need_coma = 0; |
526 | 529 | ||
527 | if (id->match_flags & IEEE1394_MATCH_VENDOR_ID) { | 530 | if (id->match_flags & IEEE1394_MATCH_VENDOR_ID) { |