wiz
64e964907b
Close file handle after using it. Found by cppcheck.
2010-01-17 23:17:08 +00:00
wiz
f9884f518a
Free malloc()ed buffer in error case. Found by cppcheck.
2010-01-17 23:13:32 +00:00
wiz
62523e18d5
Close file handles in error cases. Found by cppcheck.
2010-01-17 23:12:30 +00:00
wiz
ccf859cb7b
Close file handle in error case. Found by cppcheck.
2010-01-17 23:10:20 +00:00
wiz
7bd4f0a241
Close log file handle after using it. Found by cppcheck.
2010-01-17 23:09:02 +00:00
wiz
15989318ee
Close file handle after using it. Found by cppcheck.
2010-01-17 23:06:31 +00:00
wiz
e15635055f
Free strdeupped string after using it. Found by cppcheck.
2010-01-17 23:03:01 +00:00
wiz
44e3b1fff7
Close file handles after using them. Found by cppcheck.
2010-01-17 23:02:48 +00:00
wiz
4c5d0b1878
Close file when finished with it. Found by cppcheck.
2010-01-17 22:56:32 +00:00
wiz
32b30fe688
Simplify alloc() to avoid ifdef(LINT) workaround.
2010-01-17 22:55:20 +00:00
wiz
8c6dae0be9
Close two file descriptors after using them. Found by cppcheck.
2010-01-17 22:52:00 +00:00
wiz
7d9fce090d
Only a return value below 0 denotes an error in open(2). Found by cppcheck.
2010-01-17 22:48:50 +00:00
wiz
af7d8656df
Close file when finished with it. Found by cppcheck.
2010-01-17 22:47:18 +00:00
wiz
bfc69b9f22
Add missing parentheses in ifdef(OLD_LEXER). Found by cppcheck.
2010-01-17 22:42:36 +00:00
dsl
7ed12d4ce0
Fix 'fault on load of %gs during retirn to userspace' to look for the
...
correct instruction bytes.
Take the 'fault on load segment register' through the same path as 'fault
on iret' so we don't have to fixup the broken stackframe that contains a
mix of user and kernel registers,
Update comments about how the faults during return to userspace are processed.
Setting an invalid %gs in the saved context of a signal handler causes
a SIGSEGV handler to be entered with what look like valid registers.
2010-01-17 22:21:18 +00:00
pooka
64da563d90
Forward declare struct bpf_if and use that as the type for bpf_if
...
instead of "void *". Buys us oo times the type-safety for 0 times
the price.
(no functional change)
2010-01-17 19:45:06 +00:00
drochner
d0d86c817a
fix tyop in default flag definition
2010-01-17 17:02:47 +00:00
phx
f189752c2a
Heed modeldata.ranges_offset while constructing the ranges bitmap.
2010-01-17 16:47:17 +00:00
tsutsui
15c20a62b3
Make sure to set ZS_HWFLAG_USE_CONSDEV and zs_consdev into zsc_args
...
passed to child devices even in !(NWSKBD == 0) case so that zs console
functions are actually used rather than the default prom console.
Fixes stray interrupts on MP machines running GENERIC.MP kernel with
zs serial console.
Ok'ed by mrg@.
2010-01-17 16:23:43 +00:00
drochner
23174fa441
Invert the flag bits to control module loading: rename
...
LOADMODULES->NOMODULES and READBOOTCONF->NOBOOTCONF.
This way, the default value (0) wired into old bootxx_* and installed
to file systems remains valid and we avoid problems on partial updates.
2010-01-17 14:54:43 +00:00
mbalmer
5214aa9799
The default output file extension is '.dat', not '.out'.
...
From Lars Nooden via OpenBSD.
2010-01-17 13:35:00 +00:00
wiz
4eb4d50caa
Match curly braces in undef(FILEC) case. Found by cppcheck.
2010-01-17 12:15:36 +00:00
haad
b7a32bf196
Fix problem where xbdi->xbdi_size was set to 0 after succesfull DIOCGWEDGEINFO
...
call. Problem reported in private mail.
2010-01-17 12:08:29 +00:00
jdc
614dee5907
Mask out (disable) cas interrupts on detach and suspend.
...
(Re-)enable interrupts on resume.
2010-01-17 11:57:29 +00:00
skrll
115d3c7160
Use pmap_extract instead of kvtop.
2010-01-17 08:50:04 +00:00
skrll
92ae846d27
Remove an old comment.
2010-01-17 08:48:50 +00:00
skrll
0c6d78a91f
Don't panic when bus_space_map fails. Just report and error and carry on.
2010-01-17 08:33:54 +00:00
skrll
6ab17f1b21
Add some comments.
2010-01-17 08:29:00 +00:00
skrll
2c3b4d7619
Simplify.
2010-01-17 08:24:06 +00:00
skrll
d306de736d
Restore backwards compatibility for binaries referencing the main
...
Obj_Entry.
2010-01-17 08:04:20 +00:00
dholland
dcf56c99e1
Remove some leftover bits of tn3270 that got left behind.
2010-01-17 04:15:41 +00:00
christos
a6b956aa6c
- we don't need stdbool.h anymore.
...
- the previous fix for the negative index logic was wrong, fix it.
2010-01-16 21:26:59 +00:00
phx
9da6729818
Allow compilation without rtas device being configured.
2010-01-16 21:05:28 +00:00
pooka
fe3e79c05a
* add option to use bpf to dump response
...
* randomize local address to avoid poor confused peers due to us
"rebooting" quite rapidly when testing.
2010-01-16 20:47:01 +00:00
pooka
048228094a
update type of bh_tstamp
2010-01-16 18:47:50 +00:00
dyoung
af2b13bf18
Delete some dead (#ifdef notyet) code.
2010-01-16 18:43:34 +00:00
pooka
c3ac0e0ea8
move bpfilter.h to a more central location
2010-01-16 18:02:19 +00:00
pooka
29ca934b44
support bpf
2010-01-16 17:55:50 +00:00
bouyer
8189b574e4
Fix leak of a usbd_xfer_handle when a interrupt pipe is aborted then
...
closed:
usbd_open_pipe_intr() allocates a usbd_xfer_handle for pipe->intrxfer.
Most usb device drivers using interrupt pipes call usbd_abort_pipe()
then usbd_close_pipe(), usbd_close_pipe() is supposed to free pipe->intrxfer.
But usbd_abort_pipe() calls [uoe]hci_device_intr_abort() which,
if the xfer aborted is pipe's intrxfer, sets pipe->intrxfer to NULL.
So usbd_close_pipe() can't free it and the usbd_xfer_handle is lost.
To fix this, in usbd_abort_pipe() remember the pipe->intrxfer's value
on entrie, and if it's different after usbd_ar_pipe(), call
usbd_free_xfer with the original value.
Confirmed to fix the memory leak on close() with umodem(4) and
uplcom(4).
2010-01-16 17:03:03 +00:00
roy
094674957f
Typo
2010-01-16 16:12:01 +00:00
roy
d8bcc11c1b
Remove tn3270 from sets
2010-01-16 16:10:39 +00:00
roy
8036c9fa11
Document tn3270 removal.
2010-01-16 15:46:32 +00:00
roy
8dafc5727f
Remove tn3270 from base system.
...
If anyone really needs it then it can be put into pkgsrc.
Importing c3270 into pkgsrc is probably a better option though.
2010-01-16 15:34:22 +00:00
skrll
15b38a3879
Add a couple of comments and some whitespace.
2010-01-16 13:59:42 +00:00
skrll
5764441dd3
Tweak comment. From OpenBSD.
2010-01-16 13:53:58 +00:00
skrll
3e5644bee4
Simplify
2010-01-16 13:49:11 +00:00
skrll
8c8e2e46ed
Tweak astpending handling.
2010-01-16 13:29:47 +00:00
skrll
2e0bcc8d3b
Remove cargo cult dlinfo entry point.
2010-01-16 10:37:51 +00:00
skrll
a6de3e0058
Use the description in the ACD for T_DBREAK.
2010-01-16 10:06:31 +00:00
mbalmer
8f42635938
fix wording:
...
instead of the a file -> instead of a file
2010-01-16 08:50:29 +00:00