summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix two accesses to uninitialized variables that a revision 1.27ru2006-01-181-4/+8
| | | | | | has introduced. Found with: Coverity Prevent(tm)
* Prevent dereferencing a NULL route pointer when trying to update theandre2006-01-181-1/+2
| | | | | | | | | | | route MTU. This bug is very difficult to reach and not remotely exploitable. Found by: Coverity Prevent(tm) Coverity ID: CID162 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days
* Be ready to a case when not a constant number of segments is returnedglebius2006-01-182-13/+23
| | | | | | by bus_dmamap_load_mbuf_sg() on jumbo buffer allocation. Reviewed by: scottl, gallatin
* Return mbuf pointer or NULL from ip_fastforward() as the mbuf pointerandre2006-01-189-27/+27
| | | | | | | | | | | may have changed by m_pullup() during fastforward processing. While this is a bug it is actually never triggered in real world situations and it is not remotely exploitable. Found by: Coverity Prevent(tm) Coverity ID: CID780 Sponsored by: TCP/IP Optimization Fundraise 2005
* Correct two promise entries, these are only 2port SATA.sos2006-01-181-2/+2
|
* Whitespace cleanup.sos2006-01-188-128/+134
|
* Style cleanups.pjd2006-01-181-24/+21
| | | | X-MFC-after: Already MFCed to RELENG_6 by accident.
* Properly report SATA connection speed.sos2006-01-181-3/+12
|
* Check ifp before dereferencing it in xl_detach(). xl_detach() can be calledglebius2006-01-181-1/+1
| | | | | | from xl_attach(), when ifp is not defined yet. Found with: Coverity Prevent(tm)
* Add support for using DMA on dump, greatly speeds up the dump process.sos2006-01-189-1315/+1247
| | | | Add dump support in ataraid.
* Correct a buffer overflow when scanning for 802.11 wireless networks.cperciva2006-01-181-4/+16
| | | | Security: FreeBSD-SA-06:05.80211
* Fix ioctl to not get swallowed by ioctl code (i.e., make sure the darnedmjacob2006-01-181-1/+1
| | | | | | code sticks within 8 bits) MFC after: 1 week
* Eliminate a stale instruction introduced in revision 1.136.davidxu2006-01-181-1/+0
|
* o Add missing relocations.marcel2006-01-181-24/+30
| | | | o Minor white-space fixups.
* Remove Giant / busdma_lock_mutex from busdma_tag_create().ariff2006-01-181-4/+4
|
* - Count packets discarded by RX/TX MAC (cause of FIFO overflow, etc)oleg2006-01-172-29/+33
| | | | | | | | | | as input/output interface errors. - Keep values of rx/tx discards & tx collisions inside struct bge_softc. So we can keep statistic across ifconfig down/up runs (cause bringing bge up will reset chip). Approved by: glebius (mentor) MFC after: 1 week
* s/R_IA64_/R_IA_64_/g as per the ia64 psABI.marcel2006-01-175-109/+104
|
* Since p_cansee will end up dereferencing p_ucred, don't check for p_ucredjmallett2006-01-171-9/+7
| | | | | | | | | | | equal to NULL several times later. p_ucred "should probably not" be NULL if the process isn't PRS_NEW anyway. This is strongly reinforced by the fact that we don't see frequent crashes here. Remove the checks after p_cansee and add a KASSERT right before it. Found by: Coverity Prevent (tm) Also trim one nearby trailing space.
* I ran into an nfs client panic a couple of times in a row over thealfred2006-01-179-9/+41
| | | | | | | | | | | | | | | | | | | | last few days. I tracked it down to the fact that nfs_reclaim() is setting vp->v_data to NULL _before_ calling vnode_destroy_object(). After silence from the mailing list I checked further and discovered that ufs_reclaim() is unique among FreeBSD filesystems for calling vnode_destroy_object() early, long before tossing v_data or much of anything else, for that matter. The rest, including NFS, appear to be identical, as if they were just clones of one original routine. The enclosed patch fixes all file systems in essentially the same way, by moving the call to vnode_destroy_object() to early in the routine (before the call to vfs_hash_remove(), if any). I have only tested NFS, but I've now run for over eighteen hours with the patch where I wouldn't get past four or five without it. Submitted by: Frank Mayhar Requested by: Mohan Srinivasan MFC After: 1 week
* Fix a memory leak I introduced with the hostb/vgapci stuff.jhb2006-01-172-8/+16
| | | | Reported by: Coverity (via dfr's clue-bat)
* Bah. Fix 'show lock' to actually be compiled in. I had just fixed this injhb2006-01-171-0/+3
| | | | p4 but had an older subr_lock.c on the machine I committed to CVS from.
* Add a new file (kern/subr_lock.c) for holding code related to structjhb2006-01-177-88/+155
| | | | | | | | | | | | | lock_obj objects: - Add new lock_init() and lock_destroy() functions to setup and teardown lock_object objects including KTR logging and registering with WITNESS. - Move all the handling of LO_INITIALIZED out of witness and the various lock init functions into lock_init() and lock_destroy(). - Remove the constants for static indices into the lock_classes[] array and change the code outside of subr_lock.c to use LOCK_CLASS to compare against a known lock class. - Move the 'show lock' ddb function and lock_classes[] array out of kern_mutex.c over to subr_lock.c.
* Fix a memory leak.jkoshy2006-01-171-5/+7
| | | | Found by: Coverity
* Initialize thread0.td_contested in init_turnstiles() rather thanjhb2006-01-172-3/+1
| | | | mutex_init() as it is used by the turnstile code and is not mutex-specific.
* Update a stale comment.jhb2006-01-171-1/+1
|
* Garbage collect turnstile_empty() since it is unused.jhb2006-01-172-20/+2
|
* Fix an 11 year old mistake: Let the hash functions take a void* insteadphk2006-01-172-4/+5
| | | | of unsigned char* argument.
* Move $FreeBSD$ from comment to __FBSDID().pjd2006-01-171-2/+3
|
* - Use better types.pjd2006-01-171-6/+6
| | | | | | - Log problems at level 0 when killing providers. MFC after: 3 days
* Check return value.pjd2006-01-171-0/+4
| | | | | Found by: Coverity Prevent(tm) MFC after: 3 days
* Remove dead code.pjd2006-01-171-2/+0
| | | | | Found by: Coverity Prevent(tm) MFC after: 3 days
* Remove unused value.pjd2006-01-171-2/+1
| | | | | Found by: Coverity Prevent(tm) MFC after: 3 days
* Log situation when EIO is returned.pjd2006-01-171-0/+1
|
* Remove bio leak when EIO error is emulated.pjd2006-01-171-5/+5
| | | | | Found by: Coverity Prevent(tm) MFC after: 3 days
* The number of ticks per usec for YUKON_EC is 125.yongari2006-01-172-2/+2
|
* fix Rx checksum computation on little endian systems.yongari2006-01-171-1/+1
| | | | Reported & Tested by: brad@OpenBSD
* fix interrupt moderation timer frequencies for Yukonyongari2006-01-174-14/+42
| | | | Obtained from: OpenBSD
* remove trailing spacesyongari2006-01-172-22/+22
|
* Set flag in needsbuffer while still holding bqlock to avoid lost wakeup.tegge2006-01-161-2/+4
|
* Fix broken capabilites. There are possible calculation errors withinariff2006-01-161-2/+2
| | | | | | | | | | ess_calcspeed8() and ess_calcspeed9() that need to be fixed as well (TODO). Reported by: [1] Claude Buisson <cbuisson at nerim.net> MFC after: 3 days [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003566.html
* ehci_pci.c:ariff2006-01-163-7/+19
| | | | | | | | | | | ATI EHCI controllers exhibit simmilar stall issues and require this dropped interrupts workaround. Be verbose about it. ehci.c: ehcivar.h: Slight change in comments to note about issues surrounding both VIA and ATI EHCI controllers. Approved by: iedowse
* Add PCI vendor id for ATI OHCI USB controllers.ariff2006-01-161-0/+11
| | | | Approved by: iedowse
* Although we check the return value of copyin(9) while determaining howcsjp2006-01-161-2/+6
| | | | | | | | | | long the string is in userspace, afterwards we call malloc(M_WAITOK), which could sleep for an unknown amount of time. Check the return value of copyin(9) just to be sure that nothing has changed during that time. Found with: Coverity Prevent (tm) MFC after: 1 week
* Fix standalone module build.ru2006-01-161-0/+2
| | | | Reported by: Boris Samorodov <bsam@ipt.ru>
* I couldn't find any traces of what the tags1 file was supposed to do.ru2006-01-161-2/+0
|
* Restore old compatibility of feeding directly into /dev/dsp at 8000 hzariff2006-01-161-2/+4
| | | | | | | | | while preserving the New World Order. Discussed with: [1] Michael W. Oliver <michael at gargantuan.com> MFC after: 1 week [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003562.html
* Correct typos (s/OFERFLOW/OVERFLOW/).kris2006-01-163-4/+4
| | | | Reviewed by: jhb
* Work around a problem seen on VIA EHCI controllers where occasionallyiedowse2006-01-153-0/+38
| | | | | | | | | | | | an interrupt appears to occur before the transfer has been marked as completed. This caused umass transfers to get stuck, especially when writing large files. The workaround sets up a timer that rechecks for missed completed transfers if some operations are still pending. Other suggested workarounds, such as performing a PCI read immediately after acknowledging the interrupts, do not appear to help. Obtained from: OpenBSD
* Set sc_dying to 1 when detaching. In NetBSD and OpenBSD this wasiedowse2006-01-153-0/+6
| | | | | done by the DVACT_DEACTIVATE case in *hci_activate(), but we don't use that code in FreeBSD so it was never set.
* The ehci driver doesn't use the transfer `hcpriv' field, so don'tiedowse2006-01-151-1/+0
| | | | bother setting it to NULL in ehci_root_ctrl_done().
OpenPOWER on IntegriCloud