1. 02 12月, 2014 1 次提交
    • D
      CodingStyle: add some more error handling guidelines · ea040360
      Dan Carpenter 提交于
      I added a paragraph on choosing label names, and updated the example
      code to use a better label name.  I also cleaned up the example code to
      more modern style by moving the allocation out of the initializer and
      changing the NULL check.
      
      Perhaps the most common type of error handling bug in the kernel is "one
      err bugs".  CodingStyle already says that we should "avoid nesting" by
      using error labels and one err style error handling tends to have
      multiple indent levels, so this was already bad style.  But I've added a
      new paragraph explaining how to avoid one err bugs by using multiple
      error labels which is, hopefully, more clear.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: NJulia Lawall <julia.lawall@lip6.fr>
      [jc: added GFP_KERNEL to kmalloc() call]
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      ea040360
  2. 25 11月, 2014 1 次提交
  3. 24 11月, 2014 1 次提交
  4. 08 11月, 2014 1 次提交
  5. 07 11月, 2014 2 次提交
  6. 04 11月, 2014 2 次提交
  7. 01 11月, 2014 2 次提交
  8. 29 10月, 2014 1 次提交
  9. 28 10月, 2014 2 次提交
  10. 27 10月, 2014 1 次提交
  11. 25 10月, 2014 4 次提交
  12. 24 10月, 2014 2 次提交
  13. 23 10月, 2014 1 次提交
  14. 22 10月, 2014 1 次提交
  15. 21 10月, 2014 10 次提交
  16. 20 10月, 2014 1 次提交
  17. 16 10月, 2014 6 次提交
  18. 15 10月, 2014 1 次提交