Konstantin Belousov 5ed954efd1 If alloc_unr() call in the pipe_create() failed, then pipe->pipe_ino is
-1. But, because ino_t is unsigned, this case was not covered by the
test ino > 0 in pipeclose(), leading to the free_unr(-1). Fix it by
explicitely comparing with 0 and -1. [1]

Do no access freed memory, the inode number was cached to prevent access
to cpipe after it possibly was freed, but I failed to commit the right
patch.

Noted by:	gianni [1]
Pointy hat to:	kib
MFC after:	3 days
2011-12-01 11:36:41 +00:00
..
2011-11-28 21:42:31 +00:00
2011-10-27 14:15:26 +00:00
2011-11-28 19:48:04 +00:00
2011-11-28 23:36:48 +00:00
2011-11-28 20:48:35 +00:00
2011-11-26 23:57:03 +00:00
2011-11-27 15:49:46 +00:00