the bitrig pedro_tmpfs branch has been created by pedro.

it is 0 commits behind master, and 5 commits ahead.

commit a9d4de52cb95589495b741c5c13c09f394d9c450
diff: https://github.com/bitrig/bitrig/commit/a9d4de5
author: pedro martelletto <[email protected]>
date: Mon Jan 26 07:26:24 2015 +0100

Another case of bogus tmpfs_free_node().

Squash with previous.

M       sys/tmpfs/tmpfs_snapshot.c

commit 77e1515ac55804d78d6f4a57332a18b3d0da1a91
diff: https://github.com/bitrig/bitrig/commit/77e1515
author: pedro martelletto <[email protected]>
date: Sun Jan 25 08:57:13 2015 +0100

Fix crash in tmpfs_snap_load_cleanup().

XXX rework this; committing for test purposes only.

M       sys/tmpfs/tmpfs_snapshot.c

commit de141b22ca57ed54551de25f80f06267b895f3af
diff: https://github.com/bitrig/bitrig/commit/de141b2
author: pedro martelletto <[email protected]>
date: Sat Jan 24 17:02:16 2015 +0100

Simplify error handling.

- Let tmpfs_snap_load_hdr() do tmpfs_free_node().
- Get rid of unnecessary goto's.
- Fix a leak in tmpfs_snap_attach_node().

M       sys/tmpfs/tmpfs_snapshot.c

commit 811f00ab2cc58ddefaeb96c557dd1e46f50fd962
diff: https://github.com/bitrig/bitrig/commit/811f00a
author: pedro martelletto <[email protected]>
date: Sat Jan 24 16:56:20 2015 +0100

Handle error conditions gracefully in tmpfs_alloc_node().

Replace a few occurences of KASSERT() with checks followed by
appropriate error handling.

M       sys/tmpfs/tmpfs_mem.c
M       sys/tmpfs/tmpfs_snapshot.c
M       sys/tmpfs/tmpfs_subr.c

commit fc6326de351dac21b8a4fe5b50c14806cadb5a61
diff: https://github.com/bitrig/bitrig/commit/fc6326d
author: pedro martelletto <[email protected]>
date: Sat Jan 24 16:40:50 2015 +0100

Initialise td_node in tmpfs_alloc_dirent().

If the allocation of a new node in tmpfs fails before td_node is set,
tmpfs_free_dirent() will be called to dispose of the corresponding
directory entry, and tmpfs_free_dirent() expects td_node to be NULL.
Since these entries are retrieved from a pool without PR_ZERO, td_node
needs to be explicitly set.

M       sys/tmpfs/tmpfs_subr.c

Reply via email to