Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 May 2008 18:31:38 +0000 (11:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 May 2008 18:31:38 +0000 (11:31 -0700)
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
  firewire: fw-sbp2: log scsi_target ID at release
  ieee1394: fix NULL pointer dereference in sysfs access

1  2 
drivers/ieee1394/nodemgr.c

index 29d833e71cbfbc3c8ef0be7137186cc07afa553e,c6babe802a3b56db9526d58c944012893583b362..05710c7c12206aa1a9fcca8bad4db2eac3be7697
@@@ -18,8 -18,8 +18,8 @@@
  #include <linux/moduleparam.h>
  #include <linux/mutex.h>
  #include <linux/freezer.h>
 +#include <linux/semaphore.h>
  #include <asm/atomic.h>
 -#include <asm/semaphore.h>
  
  #include "csr.h"
  #include "highlevel.h"
@@@ -520,8 -520,11 +520,11 @@@ static ssize_t fw_show_drv_device_ids(s
        char *scratch = buf;
  
        driver = container_of(drv, struct hpsb_protocol_driver, driver);
+       id = driver->id_table;
+       if (!id)
+               return 0;
  
-       for (id = driver->id_table; id->match_flags != 0; id++) {
+       for (; id->match_flags != 0; id++) {
                int need_coma = 0;
  
                if (id->match_flags & IEEE1394_MATCH_VENDOR_ID) {