| Summary: | unchecked return in vm/swap_pager.c | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | andrew <andrew> | ||||
| Component: | kern | Assignee: | dwmalone | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
andrew
2001-03-22 15:10:02 UTC
On Thu, Mar 22, 2001 at 07:09:15AM -0800, andrew@nfr.net wrote: > >Description: > There is an unchecked return from zinit() at line 307 in vm/swap_pager.c This seems to have been fixed in -current due to other work which has gone on there. The stable tree is currently in a code freeze, but I think a simple patch like this should be OK. Jordan - can I commit this now, or should I wait 'till after the freeze? David. Index: swap_pager.c =================================================================== RCS file: /cvs/FreeBSD-CVS/src/sys/vm/swap_pager.c,v retrieving revision 1.130.2.7 diff -u -r1.130.2.7 swap_pager.c --- swap_pager.c 2000/11/26 02:55:14 1.130.2.7 +++ swap_pager.c 2001/03/23 20:01:12 @@ -312,6 +312,8 @@ ZONE_INTERRUPT, 1 ); + if (swap_zone == NULL) + panic("swap_pager_swap_init: swap_zone == NULL"); /* * Initialize our meta-data hash table. The swapper does not need to Responsible Changed From-To: freebsd-bugs->dwmalone I'll commit this as soon as I get the go ahead. State Changed From-To: open->closed Committed - thanks! |