Commit Graph

20128 Commits

Author SHA1 Message Date
riz b602094b15 Fix some RCS IDs, and the comments including them. 2006-04-14 18:38:50 +00:00
christos 53daf02156 Coverity CID 1103: Avoid NULL pointer deref. 2006-04-14 17:58:01 +00:00
christos cbf7d00ad2 Coverity CID 2439: Remove bogus test. 2006-04-14 17:54:26 +00:00
christos 7fad94d825 Coverity CID 1111: Fix cut'n'paste bug! 2006-04-14 17:50:27 +00:00
christos 4be84f7cdb Coverity CID 1112: If we did not get a packet, bail out early. 2006-04-14 17:46:29 +00:00
christos af27d5132b Coverity CID 773: Add a KASSERT to appease coverity. 2006-04-14 17:42:29 +00:00
christos c6bb3943dd Coverity CID 1100: Avoid NULL pointer dereferences. 2006-04-14 17:36:51 +00:00
christos 30baf54001 Coverity CID 1101: Protect against address argument being NULL. 2006-04-14 17:33:10 +00:00
christos 9a52196c1d Coverity CID 1131: Avoid NULL pointer dereference. 2006-04-14 17:27:08 +00:00
christos b6fca780b3 Coverity CID 729: Remove dead code. 2006-04-14 17:21:17 +00:00
christos 4656123e9c Use c instead of s->cur. 2006-04-14 17:18:59 +00:00
christos 24da938ec7 Coverity CID 1115: It is quite pointless to have a DIAGNOSTIC panic that
checks a variable for being NULL, and if we are not in DIAGNOSTIC code, to
just dereference it causing a crash!
2006-04-14 17:07:23 +00:00
christos d8ff0a7b54 Coverity CID 1132: avoid NULL derefs. 2006-04-14 17:04:06 +00:00
christos 96408ef538 Coverity CID 730: Ifdef dead code appropriately. 2006-04-14 17:00:55 +00:00
christos a2b69f5e33 Coverity CID 1354: Add a KASSERT to convince coverity that there is no NULL
pointer dereference.
2006-04-14 16:41:53 +00:00
christos 457f653f3f Coverity CID 1355: Add a KASSERT to convince coverity that this is not NULL. 2006-04-14 16:39:33 +00:00
christos 2fa8f13ac7 Coverity CID 1133: Abort quickly if we don't have a buffer in all the cases. 2006-04-14 16:31:27 +00:00
christos cd2eb11f45 Coverity CID 2330: Spell out that we are going to use the memory we allocated. 2006-04-14 16:26:46 +00:00
christos 1b815db766 Coverity CID 1084: Don't call suser if we don't have a process context. 2006-04-14 16:19:44 +00:00
blymn 3c0adb7d99 Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
rpaulo 650c02ea97 s/#ifdef DEBUG/#ifdef AUICH_DEBUG/ 2006-04-14 13:02:57 +00:00
christos d7e1743903 PR/29683: Sergey Svishchev: Make this compile again.. 2006-04-13 23:16:33 +00:00
hannken 3d3a6761ea fss_bs_thread: add FSS_LOCK() in two error cases so the lock is held
on top of the loop.

From Christian Ehrhardt (netbsd-kern AT c--e.de) via tech-kern@
2006-04-13 15:56:53 +00:00
macallan 313752a79e add a framebuffer type for generic PCI devices 2006-04-13 13:30:25 +00:00
cube b08283e19d Fix grammar in a comment, and use named constants for better readability. 2006-04-13 09:47:19 +00:00
kochi bde9af0a6f NULL check for a parameter of AcpiOsSignal().
The upper layer (ACPI-CA) might call with NULL pointer.

This should resolve Coverity CID 1114.
2006-04-13 08:27:09 +00:00
christos dd8ade94a0 Coverity CID 1320: Don't try to use drq16 as an index in an array if it is -1 2006-04-13 03:45:44 +00:00
christos 3c0717249d Coverity CID 2853: Return if we cannot establish an interrupt instead
of crashing later.
2006-04-13 03:36:26 +00:00
christos cb23cf75a0 Coverity CID 1543: Fix buffer off-by-one on error. 2006-04-13 03:34:46 +00:00
macallan 767a272758 pass the right cookie to ioctl() and mmap() instead of struct wsscreen * 2006-04-13 01:15:27 +00:00
christos 48fc1e1ea4 Regen. 2006-04-13 00:30:43 +00:00
christos afbea8995b Fix the MPU attachment on Aztech 1020 that has a separate mpu pnp device
instead of having the mpu in io[1]. From doomwarriorx at gmail dot com.
2006-04-13 00:30:19 +00:00
simonb ad09581b8e Don't access b_fspriv.bf_private in struct buf directly - use the
b_private macro.

OK'd by oster@
2006-04-12 23:33:39 +00:00
macallan 0c6c2553d0 whitespace nits
( no, perry didn't steal my account )
2006-04-12 23:11:56 +00:00
macallan 176b72244c convert to vcons
while there, attach an fb device when running on sparc
2006-04-12 20:35:42 +00:00
macallan 9ba325f38a correct typo 2006-04-12 20:13:21 +00:00
jmmv 4652eeb82c Get rid of the memt and memh local variables in the pcdisplay_{get,put}wschar
functions.
2006-04-12 20:08:20 +00:00
jmmv efbda7406a Convert to ANSI prototypes. 2006-04-12 20:06:16 +00:00
jmmv 7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
scw 41f5e2c5dd Add "goto done;" in the usbd_open_pipe(IN) failure case.
Coverity CID 2854, via Martin Husemann.
2006-04-11 23:08:08 +00:00
scw 6bf84bea06 Apply the correct fix for Coverity CID 2862. 2006-04-11 23:07:22 +00:00
tsutsui 0761a7c180 Free resources if attach fails. 2006-04-11 18:10:27 +00:00
garbled 1de17f11a8 Add an option PCKBCNOTEST and defopt it. On the prep 7043 and 7248
machines, the keyboard controller will not pass this test, but if you
attach anyway, it works fine.  Note that this test is specifically
disabled in ic/pckbc.c, but given that it seems to work fine on other
machines, leave it defaulted to on.
2006-04-11 17:14:44 +00:00
rpaulo 70a6f82fa4 Coverity ID 2311: in auixp_allocate_dma_chain() free dma variable if
we are unable to allocate hardware dma descriptors.
2006-04-11 16:34:57 +00:00
rpaulo 9fb903cf69 Coverity ID 2313: free ``asc'' on error. 2006-04-11 16:19:39 +00:00
macallan 82ce0b1388 A driver for 3Dfx Voodoo3 graphics boards, may or may not work with Voodoo4,
Voodoo5 or Banshee boards.

So far it supports:
- full acceleration in 8bit graphics mode
- video mode switching
- virtual consoles via vcons

So far it hasn't been tested on anything else than macppc and even there it
needs a hack to overload ofb.

TODO:
- test on i386
- don't hardcode video mode
2006-04-11 16:11:07 +00:00
rpaulo 8636f91142 Coverity ID 2443: In sbp_scsipi_detach_sdev() check for sdev and
target being NULL before dereferencing them.
2006-04-11 15:52:07 +00:00
rpaulo f7d1c1a028 Coverity ID 2440: in trm_timeout(), check if srb and xs are NULL
before trying to dereference them.
2006-04-11 15:49:00 +00:00
rpaulo 3fd310011d Coverity ID 2442: check if one can dereference ifp before calling
iwi_stop() in iwi_detach().
2006-04-11 15:42:56 +00:00
rpaulo ab299cced2 Coverity ID 2859: Don't leak ccb, move the allocation a few lines
lower next to where it'll be used for the first time.
2006-04-11 14:17:09 +00:00