hammer - Fix a NULL pointer dereference.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 12 Oct 2014 18:52:12 +0000 (20:52 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 12 Oct 2014 18:55:15 +0000 (20:55 +0200)
commitdaf5ec8a8789084a8ad1b9b2fafad64c6a94a528
tree768e351985e0f5bd39b7fe22f54c37212563a7b9
parent48afb8ac38e61c62fd6a44b5be3ca539829eaf1e
hammer - Fix a NULL pointer dereference.

- hammer_create_inode() allows its parameter dip to be NULL, so
  before checking nlinks, see if dip is actually not NULL.

Spotted-by: swildner
sys/vfs/hammer/hammer_inode.c