1. 20 4月, 2008 1 次提交
  2. 25 1月, 2008 1 次提交
  3. 17 1月, 2008 2 次提交
  4. 31 10月, 2007 1 次提交
  5. 17 10月, 2007 2 次提交
  6. 13 10月, 2007 27 次提交
  7. 23 8月, 2007 1 次提交
  8. 19 7月, 2007 2 次提交
    • T
      sysfs: cosmetic clean up on node creation failure paths · 967e35dc
      Tejun Heo 提交于
      Node addition failure is detected by testing return value of
      sysfs_addfm_finish() which returns the number of added and removed
      nodes.  As the function is called as the last step of addition right
      on top of error handling block, the if blocks looked like the
      following.
      
      	if (sysfs_addrm_finish(&acxt))
      		success handling, usually return;
      	/* fall through to error handling */
      
      This is the opposite of usual convention in sysfs and makes the code
      difficult to understand.  This patch inverts the test and makes those
      blocks look more like others.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Gabriel C <nix.or.die@googlemail.com>
      Cc: Miles Lane <miles.lane@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      967e35dc
    • A
      sysfs: avoid kmem_cache_free(NULL) · 01da2425
      Akinobu Mita 提交于
      kmem_cache_free() with NULL is not allowed. But it may happen
      if out of memory error is triggered in sysfs_new_dirent().
      This patch fixes that error handling.
      Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      01da2425
  9. 12 7月, 2007 3 次提交