Commit Graph

145092 Commits

Author SHA1 Message Date
christos
9a02e676ef Coverity CID 1301: Return early if we could not open /dev/null 2006-03-22 02:23:11 +00:00
christos
7ef824757b Coverity CID 1593: Plug memory leak 2006-03-22 02:21:20 +00:00
christos
ec4e36f798 Coverity CID 46: Remove dead code. 2006-03-22 02:17:52 +00:00
christos
4b41923ad3 Coverity CID 198: Remove dead code if INT_MAX == LONG_MAX 2006-03-22 02:14:03 +00:00
christos
ec166aba55 Coverity CID 199: make sure that rtp is not NULL before dereferencing. 2006-03-22 02:08:55 +00:00
christos
4bd79d53a1 Oops, the previous change was not entirely correct since we were checking
the wrong byte.
2006-03-22 01:45:08 +00:00
matt
ce8489309f There is no need to use MALLOC/FREE when rebuilding the execsw array
due to LKM loading/unloading.  This is not performance critical.
2006-03-22 01:14:46 +00:00
matt
4c71408df5 An MTU can't be negative so store them in unsigned variables. 2006-03-22 01:07:24 +00:00
christos
e5d3e31596 Coverity CID 578: remove dead code 2006-03-22 00:14:18 +00:00
hubertf
2785aa55bc Add to comment for "mapfile": see also /usr/share/wscons/keymaps 2006-03-22 00:13:44 +00:00
matt
3ae62e4c0b Get rid of stupid GCC fix. It was wrong. Spotted by Coverity. 2006-03-22 00:13:26 +00:00
christos
ee43724903 Coverity CID 580: fix 'c' handling to match 'x' ('c' used the wrong variable) 2006-03-22 00:11:28 +00:00
christos
c8780d3168 Coverity CID 1440: off by one in array count. 2006-03-22 00:08:09 +00:00
christos
f70970fc40 Coverity CID 1640: closedir on error. 2006-03-22 00:05:01 +00:00
christos
bd4761ac59 Coverity CID 2279: Plug memory leak. 2006-03-22 00:03:51 +00:00
christos
c882076269 Coverity CID 2280: Plug memory leak. 2006-03-22 00:03:00 +00:00
christos
999efc5191 Coverity CID 2291: Move function call before allocating storage to prevent
memory leak on error.
2006-03-22 00:02:00 +00:00
christos
3a135d2872 Coverity CID 2292: Plug memory leak. 2006-03-22 00:00:16 +00:00
christos
a742aacd73 Coverity CID 2293: Fix memory leak. 2006-03-21 23:58:24 +00:00
christos
40c58e8b04 Coverity CID 2363: cur is known not to be NULL. 2006-03-21 23:56:47 +00:00
christos
432fdd32e0 Coverity CID 2364: cur is known not to be NULL. 2006-03-21 23:55:56 +00:00
christos
f12fd11960 Coverity CID 2430: cur is known not to be NULL. 2006-03-21 23:55:02 +00:00
christos
80f67fa272 Coverity CID 879: Don't increment bits before checking it for NULL. 2006-03-21 23:50:09 +00:00
christos
17c2501482 Coverity CID 881: Always print an error if allocation failed.
If the program is not specified use getprogname()
2006-03-21 23:47:51 +00:00
christos
3351d69442 Add coverity model annotations 2006-03-21 23:40:49 +00:00
bjh21
f3cb4934df Now that NetBSD's got a real logo, use it for !BtNetBSD's icons.
These are basically a straight conversion of the logo -- a better job
could almost undoubtedly be done by someone with artistic talent.
2006-03-21 23:33:35 +00:00
yamt
73998aa4b5 fw_bus_probe_thread: change wmesg from "-" to "fwprobe". 2006-03-21 23:29:04 +00:00
bjh21
cd2a0c7440 Add a NetBSD RCS ID and a comment explaining what this is and where it
came from.
2006-03-21 23:25:46 +00:00
agc
86caa230d8 Actually do something with the SYNC_CACHE command - use fsync_range(2) if
it's available, falling back to fsync(2) if it's not. Add the necessary
glue to the autoconf scripts.
2006-03-21 22:56:55 +00:00
pavel
d8e5c31820 Clarify and correct the description of the -R (Record Route) flag.
Reviewed by jnemeth, whith help from him.
2006-03-21 22:54:46 +00:00
gdamore
2716ac0eba Remove a file that should never have been committed. (Stub implementation
that I abandoned.)
2006-03-21 22:50:21 +00:00
he
dcaa7a3be5 It's .endif, not .fi. 2006-03-21 22:50:13 +00:00
christos
db1dbe6ce9 Coverity CID 1225: Don't close negative fd. While here fix fd leak. 2006-03-21 22:49:43 +00:00
christos
4a6e5a625c Coverity CID 1750: Add a function to free a queue and use it. 2006-03-21 22:47:26 +00:00
gdamore
3cb57abe3a Add a bunch of evbmips device names. 2006-03-21 22:47:09 +00:00
christos
1f548f352a Coverity CID 1752: getq() always allocates a queue if nitems >= 0, so always
free it.
2006-03-21 22:37:34 +00:00
he
ce265dd19b Commit forgotten definition of the ciss driver. 2006-03-21 22:33:07 +00:00
bjh21
2cc5929cc1 We don't ship the Settypes file any more, so remove the reference to it. 2006-03-21 22:16:43 +00:00
phil
4617d0a2bf Kill NULL deref (CID: 871)
Plug fd leak (not caught by coverity).
2006-03-21 21:59:56 +00:00
christos
aa1540d7a7 Coverity CID 2742: Avoid NULL deref. 2006-03-21 21:50:44 +00:00
gdamore
e0103fb04c Use const char * in yamon_print(). 2006-03-21 21:49:47 +00:00
christos
b771b70f76 Coverity CID 1601: Fix memory leak. 2006-03-21 21:43:03 +00:00
christos
22eda87ac9 Coverity CID 1603: Fix memory leak. 2006-03-21 21:41:00 +00:00
christos
0c9dfbbbdf Coverity CID 1688: Fix memory leak. 2006-03-21 21:37:34 +00:00
christos
1f5c810a97 Coverity CID 782: Don't dereference NULL was not going to happen, but:
1. return error instead of the trashed errno.
2. don't return -1, but return ENAMETOOLONG.
3. eliminate unused code.
2006-03-21 21:34:01 +00:00
christos
7067dcb9a4 Always check the results of getmntopts() and free them. 2006-03-21 21:11:41 +00:00
agc
cbf5d4f8f5 Abstract out some common code, and place it in the utilities source.
Get rid of some #ifdef __KERNEL__ abstractions - they're not needed.
2006-03-21 21:03:14 +00:00
christos
b2f6added5 Coverity CID 577: remove dead code; minburst can never be 0 at this point. 2006-03-21 20:49:54 +00:00
christos
e46022bb52 Coverity CID 1514: Don't access static array beyond the end of it.
In this case PFTM_MAX == 20 and sizeof(pf_timeouts) / sizeof(pf_timeouts[0])
== 21, using a loop with the size of the array and checking for reaching the
end of the loop via j == PFTM_MAX does not work. Change the loop to use
PFTM_MAX as the upper bound and add an assertion in the code to make sure
that pf_timeouts is large enough. Finally remove last NULL element of the
array so that the array has 20 elements again.
2006-03-21 20:47:27 +00:00
he
77c27ad055 Add a driver, ciss(4), for the HP/Compaq drivers using the newer
"Command Interface to SCSI-3 Support" command interface.  Driver
ported from OpenBSD by Tonnerre Lombard -- thanks!
2006-03-21 20:42:14 +00:00