]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] Fix leak in aty fb code.
Dave Jones [Thu, 2 Sep 2004 07:38:29 +0000 (00:38 -0700)]
[PATCH] Fix leak in aty fb code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix potential leaks in pc300_tty driver
Dave Jones [Thu, 2 Sep 2004 07:38:17 +0000 (00:38 -0700)]
[PATCH] Fix potential leaks in pc300_tty driver

It appears that 'new' can be allocated, and next time around
the loop, if something goes wrong, we lose the reference..

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leaks in ISOFS.
Dave Jones [Thu, 2 Sep 2004 07:38:05 +0000 (00:38 -0700)]
[PATCH] Fix leaks in ISOFS.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix another PNP leak.
Dave Jones [Thu, 2 Sep 2004 07:37:53 +0000 (00:37 -0700)]
[PATCH] Fix another PNP leak.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix NULL dereference in OSS v_midi driver
Dave Jones [Thu, 2 Sep 2004 07:37:41 +0000 (00:37 -0700)]
[PATCH] Fix NULL dereference in OSS v_midi driver

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove pointless check in zlib
Dave Jones [Thu, 2 Sep 2004 07:37:29 +0000 (00:37 -0700)]
[PATCH] Remove pointless check in zlib

We dereference 'z' a few lines above this check.
If it was possible to hit this condition, it wouldve
triggered long ago, in the form of a crash.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Clean up failure path in DAC960
Dave Jones [Thu, 2 Sep 2004 07:37:17 +0000 (00:37 -0700)]
[PATCH] Clean up failure path in DAC960

1. If the ScatterGatherPool allocation fails, its pointless
   trying to allocate a RequestSensePool.
2. Free up the ScatterGatherPool if the RequestSensePool allocation fails.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove pointless code from ALSA emu10k1 midi driver.
Dave Jones [Thu, 2 Sep 2004 07:37:04 +0000 (00:37 -0700)]
[PATCH] Remove pointless code from ALSA emu10k1 midi driver.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leak in PNP interface code.
Dave Jones [Thu, 2 Sep 2004 07:36:53 +0000 (00:36 -0700)]
[PATCH] Fix leak in PNP interface code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix NULL derefence in OSS MAUI driver.
Dave Jones [Thu, 2 Sep 2004 07:36:41 +0000 (00:36 -0700)]
[PATCH] Fix NULL derefence in OSS MAUI driver.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Eicon ISDN: fix leak in eicon debug code.
Dave Jones [Thu, 2 Sep 2004 04:38:10 +0000 (21:38 -0700)]
[PATCH] Eicon ISDN: fix leak in eicon debug code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Armin Schindler <armin@melware.de>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Wed, 1 Sep 2004 17:10:56 +0000 (10:10 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Wed, 1 Sep 2004 16:06:04 +0000 (09:06 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[CIFS] Fix CIFS symlink regression when long symlink paths
Steve French [Wed, 1 Sep 2004 18:35:11 +0000 (13:35 -0500)]
[CIFS] Fix CIFS symlink regression when long symlink paths

Signed-of-by: Steve French (sfrench@us.ibm.com)
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Wed, 1 Sep 2004 18:19:10 +0000 (11:19 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Wed, 1 Sep 2004 15:50:25 +0000 (08:50 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PKT_SCHED]: Kill bogus spaces in Kconfig strings.
David S. Miller [Wed, 1 Sep 2004 15:44:13 +0000 (08:44 -0700)]
[PKT_SCHED]: Kill bogus spaces in Kconfig strings.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PKT_SCHED]: Add gact generic actions.
Jamal Hadi Salim [Wed, 1 Sep 2004 15:35:47 +0000 (08:35 -0700)]
[PKT_SCHED]: Add gact generic actions.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4/IPV6]: Fixup checksums properly when fragmenting.
Herbert Xu [Wed, 1 Sep 2004 15:07:46 +0000 (08:07 -0700)]
[IPV4/IPV6]: Fixup checksums properly when fragmenting.

If we end up with a fraggap, when we copy the data
over to the next frag being built we must compute
a checksum for the bit we copy over for the new
fragment and subtract that checksum from the place
we are copying it from.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Free neigh_parms using RCU to fix neigh_create/inetdev_destroy race.
David S. Miller [Wed, 1 Sep 2004 15:03:37 +0000 (08:03 -0700)]
[NET]: Free neigh_parms using RCU to fix neigh_create/inetdev_destroy race.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[CIFS] fix recent cifs symlink change so as not call kfree on null path
Steve French [Wed, 1 Sep 2004 12:59:07 +0000 (07:59 -0500)]
[CIFS] fix recent cifs symlink change so as not call kfree on null path

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years ago[NETFILTER]: Sort Kconfig entries into reasonable order.
Harald Welte [Wed, 1 Sep 2004 11:15:25 +0000 (04:15 -0700)]
[NETFILTER]: Sort Kconfig entries into reasonable order.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Add some missing help entries.
Harald Welte [Wed, 1 Sep 2004 11:14:42 +0000 (04:14 -0700)]
[NETFILTER]: Add some missing help entries.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Need to clear nf_debug parp_redo().
Kirill Korotaev [Wed, 1 Sep 2004 11:13:30 +0000 (04:13 -0700)]
[IPV4]: Need to clear nf_debug parp_redo().

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Update defconfig.
David S. Miller [Wed, 1 Sep 2004 10:58:44 +0000 (03:58 -0700)]
[SPARC64]: Update defconfig.

22 years ago[SPARC64]: Use list_for_each in pci_sabre.c
Maximilian Attems [Wed, 1 Sep 2004 10:54:36 +0000 (03:54 -0700)]
[SPARC64]: Use list_for_each in pci_sabre.c

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Initial KPROBES implementation.
David S. Miller [Wed, 1 Sep 2004 10:53:26 +0000 (03:53 -0700)]
[SPARC64]: Initial KPROBES implementation.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[KPROBES]: Pass integer addresses, not pointers, to flush_icache_range().
David S. Miller [Wed, 1 Sep 2004 10:30:15 +0000 (03:30 -0700)]
[KPROBES]: Pass integer addresses, not pointers, to flush_icache_range().

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoUse "ifdef" rather than "if" to test for __KERNEL__
Linus Torvalds [Wed, 1 Sep 2004 09:24:37 +0000 (02:24 -0700)]
Use "ifdef" rather than "if" to test for __KERNEL__

Both work, but the latter can cause warnings in user space
from compilers that don't like using undefined identifiers
in preprocessor expressions (quite reasonable).

Pointed out by Randy Dunlap.

22 years ago[SPARC64]: Add sparc64die_chain as on x86{,_64}
David S. Miller [Wed, 1 Sep 2004 08:38:09 +0000 (01:38 -0700)]
[SPARC64]: Add sparc64die_chain as on x86{,_64}

22 years ago[SPARC64]: Kill unused 'flags' in pci_sabre.c
David S. Miller [Wed, 1 Sep 2004 08:23:48 +0000 (01:23 -0700)]
[SPARC64]: Kill unused 'flags' in pci_sabre.c

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[BRIDGE]: Add ipv6 packet filtering.
Bart De Schuymer [Wed, 1 Sep 2004 08:21:09 +0000 (01:21 -0700)]
[BRIDGE]: Add ipv6 packet filtering.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Zap pci_controller_lock.
David S. Miller [Wed, 1 Sep 2004 08:20:12 +0000 (01:20 -0700)]
[SPARC64]: Zap pci_controller_lock.

It is only taken during boot time bus probe, thus
protects nothing at run time and causes bogus bug
messages when PREEMPT is enabled.  When we support
PCI controller hot plug we will add a suitable locking
mechanism.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Use list_for_each in pci_common.c
Maximilian Attems [Wed, 1 Sep 2004 08:16:18 +0000 (01:16 -0700)]
[SPARC64]: Use list_for_each in pci_common.c

Replace for/while loops with list_for_each*.

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Fix set_utsname returning with uts semaphore held.
David S. Miller [Wed, 1 Sep 2004 07:40:21 +0000 (00:40 -0700)]
[SPARC64]: Fix set_utsname returning with uts semaphore held.

Based upon a patch from Alexander Stohr.

This thing was also reimplementing strnchr() as well.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ppc32: fix the 'checkbin' target
Tom Rini [Wed, 1 Sep 2004 05:26:04 +0000 (22:26 -0700)]
[PATCH] ppc32: fix the 'checkbin' target

The checkbin target on PPC32 isn't quite right.

First, one of the tests (to ensure that some instructions are known to
gas) is never actually invoked because 'checkbin' doesn't know about
stuff set in .config, so we always have the 'else' case run.  This
changes to always running the test and telling the user to upgrade to at
least binutils 2.12.1.

The next problem is that we were doing $(AS) -o /dev/null ...  in both
that test, as well as another.  The problem here is that the checkbin
target is run on the install targets, meaning that /dev/null will get
unlinked when the test passes.  To get around this we use .tmp_gas_check
as the output file instead.

Acked by Sam.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] nfs ->follow_link() switched to new scheme
Alexander Viro [Wed, 1 Sep 2004 05:18:31 +0000 (22:18 -0700)]
[PATCH] nfs ->follow_link() switched to new scheme

NFS takes some thought to switch to the new symlink scheme, because we
can't rely on the pagecache lookup to find the symlink page when freeing
it - the cache might have been invalidated in the meantime.

So we hide the page information in the symlink data area itself,
by stealing the last pointer in the page used for the cache. That
way nfs_put_link() can just look up the page directly.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] misc cleanup in symlink-handling part of namei.c
Alexander Viro [Tue, 31 Aug 2004 14:46:37 +0000 (07:46 -0700)]
[PATCH] misc cleanup in symlink-handling part of namei.c

page_follow_link_light() should just call nd_set_link() - error handling will
come for free.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce stack use in altroot handling
Alexander Viro [Tue, 31 Aug 2004 14:46:25 +0000 (07:46 -0700)]
[PATCH] reduce stack use in altroot handling

Massaged altroot handling to avoid on-stack struct nameidata instance (and
got it faster, actually).  We are in the middle of do_follow_link() recursion
here, so the stack footprint is critical.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cifs ->follow_link() switched to new scheme, cleaned up
Alexander Viro [Tue, 31 Aug 2004 14:46:13 +0000 (07:46 -0700)]
[PATCH] cifs ->follow_link() switched to new scheme, cleaned up

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs ->follow_link() switched to new scheme
Alexander Viro [Tue, 31 Aug 2004 14:46:01 +0000 (07:46 -0700)]
[PATCH] ncpfs ->follow_link() switched to new scheme

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sysfs ->follow_link() switched to new scheme
Alexander Viro [Tue, 31 Aug 2004 14:45:50 +0000 (07:45 -0700)]
[PATCH] sysfs ->follow_link() switched to new scheme

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] afs ->follow_link() fixes
Alexander Viro [Tue, 31 Aug 2004 14:45:38 +0000 (07:45 -0700)]
[PATCH] afs ->follow_link() fixes

* fixed leaks on failure exits
* got rid of useless struct nameidata instance

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoAllow the compiler to notice "constant" header file.
Linus Torvalds [Tue, 31 Aug 2004 14:07:07 +0000 (07:07 -0700)]
Allow the compiler to notice "constant" header file.

Both gcc and sparse will speed up tokenization by noticing
when a header file is protected by the standard preprocessor
#ifndef .. #endif exclusion.

However, that requires that the headers actually _use_ that
standard exclusion. Some did their own little broken dance.

22 years agoAnnotate sys_wait4() user pointers
Linus Torvalds [Tue, 31 Aug 2004 11:51:37 +0000 (04:51 -0700)]
Annotate sys_wait4() user pointers

22 years ago[SPARC]: Add sys_waitid support.
David S. Miller [Tue, 31 Aug 2004 11:06:08 +0000 (04:06 -0700)]
[SPARC]: Add sys_waitid support.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] megaraid annotation
Alexander Viro [Tue, 31 Aug 2004 09:43:34 +0000 (02:43 -0700)]
[PATCH] megaraid annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] eicon annotation
Alexander Viro [Tue, 31 Aug 2004 09:43:22 +0000 (02:43 -0700)]
[PATCH] eicon annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] more NULL noise removal
Alexander Viro [Tue, 31 Aug 2004 09:43:12 +0000 (02:43 -0700)]
[PATCH] more NULL noise removal

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __setup fixes
Alexander Viro [Tue, 31 Aug 2004 09:43:00 +0000 (02:43 -0700)]
[PATCH] __setup fixes

fd_mcs and NCR53c406a forget to parse string -> int array in their
setup functions.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc64 vga.h fix
Alexander Viro [Tue, 31 Aug 2004 09:42:48 +0000 (02:42 -0700)]
[PATCH] sparc64 vga.h fix

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mixart cleanups
Alexander Viro [Tue, 31 Aug 2004 09:42:36 +0000 (02:42 -0700)]
[PATCH] mixart cleanups

* check result of pci_set_dma_mask() instead of looking at pci_dma_supported()
* size_t => %zd

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netfilter warning (alpha)
Alexander Viro [Tue, 31 Aug 2004 09:42:24 +0000 (02:42 -0700)]
[PATCH] netfilter warning (alpha)

On alpha u64 is unsigned long; %llu is unsigned long long...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha csum_partial_copy.c annotations
Alexander Viro [Tue, 31 Aug 2004 09:42:13 +0000 (02:42 -0700)]
[PATCH] alpha csum_partial_copy.c annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] acpiphp_ibm.c 64bit portability
Alexander Viro [Tue, 31 Aug 2004 09:42:01 +0000 (02:42 -0700)]
[PATCH] acpiphp_ibm.c 64bit portability

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] acpi/processor.c 64bit portability
Alexander Viro [Tue, 31 Aug 2004 09:41:49 +0000 (02:41 -0700)]
[PATCH] acpi/processor.c 64bit portability

wrong type of return value for ->write()

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing include in pcm_native.c
Alexander Viro [Tue, 31 Aug 2004 09:41:37 +0000 (02:41 -0700)]
[PATCH] missing include in pcm_native.c

compile fix for alpha - io.h is needed there for io_remap_...()

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] usx2y cleanups and fixes
Alexander Viro [Tue, 31 Aug 2004 09:41:25 +0000 (02:41 -0700)]
[PATCH] usx2y cleanups and fixes

Sigh...
a) mixing of userland and kernel pointers is bad
b) so's not checking result of kmalloc()
c) so's not checking result of copy_from_user()
d) use of do { .... break; ... break; ... } while(0); is *highly*
unidiomatic.  Do not confuse kernel with IOCCC, please. And if you have
religious aversion to multiple return statements in a function, at least
learn the reasons why it is frowned upon in many situations.  Hint: they
all apply to use of break in that manner.
e) 0 instead of NULL

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha warning fixes
Alexander Viro [Tue, 31 Aug 2004 09:41:13 +0000 (02:41 -0700)]
[PATCH] alpha warning fixes

pci_dma_sync_single_for_device() had wrong prototype [who TF had come up
with that name, anyway?]
->cpu in thread_info was long; it should be unsigned int.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing include compiler.h in arm memory.h
Alexander Viro [Tue, 31 Aug 2004 09:41:01 +0000 (02:41 -0700)]
[PATCH] missing include compiler.h in arm memory.h

use of __deprecated requires compiler.h

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mmc annotation
Alexander Viro [Tue, 31 Aug 2004 09:40:49 +0000 (02:40 -0700)]
[PATCH] mmc annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing includes from irq changes
Alexander Viro [Tue, 31 Aug 2004 09:40:37 +0000 (02:40 -0700)]
[PATCH] missing includes from irq changes

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[SPARC64]: SA_SAMPLE_RANDOMNESS fix.
David S. Miller [Tue, 31 Aug 2004 07:49:34 +0000 (00:49 -0700)]
[SPARC64]: SA_SAMPLE_RANDOMNESS fix.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoRevert "mark pcxx as broken"
Linus Torvalds [Tue, 31 Aug 2004 06:35:33 +0000 (23:35 -0700)]
Revert "mark pcxx as broken"

Not only did it mark the wrong driver, Christoph reports that
somebody might have even made the driver compile these days..

Cset exclude: hch@lst.de[torvalds]|ChangeSet|20040831174055|41082

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 31 Aug 2004 04:28:50 +0000 (21:28 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] isdn debug build fix
Andrew Morton [Tue, 31 Aug 2004 03:43:29 +0000 (20:43 -0700)]
[PATCH] isdn debug build fix

On x86_64:

drivers/isdn/hardware/eicon/debug.c: In function `DI_format':
drivers/isdn/hardware/eicon/debug.c:599: incompatible types in assignment

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: zfcp host adapater
Martin Schwidefsky [Tue, 31 Aug 2004 03:43:11 +0000 (20:43 -0700)]
[PATCH] s390: zfcp host adapater

zfcp host adapater changes:
 - Add ability to enqueue other WKA ports besides the nameserver port.
 - Document and cleanup sg_list functions.
 - Add get_port_by_did/get_adapater_by_busid functions.
 - Improve documentation of some functions and structures.
 - Fix error handling for nameserver requests.
 - Correct size check in zfcp_sg_list_copy_to_user.
 - Correct parameter description for loglevel parameter.
 - Remove unsused code, types and definitions.
 - Add support for exchange_port_data command.
 - Add infrastructure to set timers for ELS and SCSI commands.
 - Avoid adapter shutdown after receiving FSF_SQ_ULP_PROGRAMMING_ERROR.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: kernel stack options.
Martin Schwidefsky [Tue, 31 Aug 2004 03:42:58 +0000 (20:42 -0700)]
[PATCH] s390: kernel stack options.

This adds support for the new compiler options -mkernel-backchain,
-mstack-size, -mstack-guard, -mwarn-dynamicstack and -mwarn-framesize.

The option -mkernel-backchain enables the use of modified layout for the
stack frames of kernel functions.  This breaks the ABI, modules compiled
with the option won't work on a kernel compiled with the option and vice
versa.  The positive effect of the option is a drastic reduction of kernel
stack use.  The trick is that the new frame layout allows to overlap the 96
(31 bit)/160 (64 bit) byte bias areas of the functions on the call chain.
This lowers the minimal stack usage of a function from 96 bytes to 16 bytes
(31 bit) and 160 bytes to 24 bytes (64 bit).  The kernel stack use is
decreased to a point where it is possible to use 4K (31 bit) / 8K (64 bit)
stacks.  The split into process stack and interrupt stack is already in
place.

The options -mstack-size and -mstack-guard are used to detect kernel stack
overflows.  The compiler adds code to the prolog of every function that
causes an illegal operation if the kernel stack is about to overflow.

The options -mwarn-dynamicstack and -mwarn-framesize cause the compiler to
emit warnings if a function uses dynamic stack allocation or if the
function frame size is bigger then a specified limit.

To play safe all the new options are configurable.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: core changes
Martin Schwidefsky [Tue, 31 Aug 2004 03:42:46 +0000 (20:42 -0700)]
[PATCH] s390: core changes

s390 core changes:
 - Fix a race condition between kernel thread creation and preemption.
 - Fix idal_is_needed for the border case 0x7ffff000.
 - Get rid of compiler warnings in compat_signal.c and profile.c.
 - Regenerate default configuration.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] stv0299 device naming fix
Jacek Poplawski [Tue, 31 Aug 2004 03:42:33 +0000 (20:42 -0700)]
[PATCH] stv0299 device naming fix

Name of device has been changed in 2.6.9-rc1 to "SkyStar2", but module stv0299
still compares name with "Technisat SkyStar2 driver", strings are different,
and result is that stv0299 detects invalid tuner type.

Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kernel/fork.c add missing unlikely().
Luiz Capitulino [Tue, 31 Aug 2004 03:42:19 +0000 (20:42 -0700)]
[PATCH] kernel/fork.c add missing unlikely().

Signed-off-by: Luiz Capitulino <lcapitulino@conectiva.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] v4l/bttv: add sanity check (bug #3309)
Gerd Knorr [Tue, 31 Aug 2004 03:42:07 +0000 (20:42 -0700)]
[PATCH] v4l/bttv: add sanity check (bug #3309)

Missing sanity check, overlay is supported for packed pixel formats only.
Patch below.  It's not API related btw, the bug can be triggered using the
v4l2 API as well.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbdev: fix copy_to/from_user in fbmem.c:fb_read/write
Antonino Daplas [Tue, 31 Aug 2004 03:41:55 +0000 (20:41 -0700)]
[PATCH] fbdev: fix copy_to/from_user in fbmem.c:fb_read/write

This patch fixes a problem reported by David S. Miller <davem@redhat.com>

"I just noticed that fb_{read,write}() uses copy_*_user() with
 the kernel buffer being the frame buffer.  It needs to use
 the proper device address accessor functions."

The patch will do an intermediate copy of the contents to a page-sized,
kmalloc'ed buffer.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbdev: fix kernel panic from FBIO_CURSOR ioctl
Antonino Daplas [Tue, 31 Aug 2004 03:41:42 +0000 (20:41 -0700)]
[PATCH] fbdev: fix kernel panic from FBIO_CURSOR ioctl

1. This fixes a kernel oops when issuing an FBIO_CURSOR ioctl if struct
   fb_cursor_user is filled with zero/NULLs.  Reported by Yuval Kogman
   <nothingmuch@woobling.org>.

2. This also fixes the cursor corruption in soft_cursor when
   sprite.scan_align != 1.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] BeFS: load default nls if none is specified in mount options
Vegard Wærp [Tue, 31 Aug 2004 03:41:30 +0000 (20:41 -0700)]
[PATCH] BeFS: load default nls if none is specified in mount options

Makes the BeOS File Systen driver load the default nls if none is specified
in the "iocharset" mount option.

Signed-off-by: Vegard Wærp <vegarwa@online.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix devfs name for microcode driver
Christoph Hellwig [Tue, 31 Aug 2004 03:41:18 +0000 (20:41 -0700)]
[PATCH] fix devfs name for microcode driver

Seem like devfsd expects it in /dev/cpu/microcode and Debian users do
as well.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make topology.h macros safer
William Lee Irwin III [Tue, 31 Aug 2004 03:41:06 +0000 (20:41 -0700)]
[PATCH] make topology.h macros safer

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mark pcxx as broken
Christoph Hellwig [Tue, 31 Aug 2004 03:40:55 +0000 (20:40 -0700)]
[PATCH] mark pcxx as broken

It's already marked BROKEN_ON_SMP, but even a UP compile yields tons of
errors.  While those aren't deeply complicated to fix having them for over
a year now is a pretty good indicator no one cares.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hfs/hfsplus is missing .sendfile
Christoph Hellwig [Tue, 31 Aug 2004 03:40:42 +0000 (20:40 -0700)]
[PATCH] hfs/hfsplus is missing .sendfile

There seem to be some crazy mac users that want to use the loop driver
on hfsplus.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] zr36067 driver - correct subfrequency carrier
Ronald Bultje [Tue, 31 Aug 2004 03:40:31 +0000 (20:40 -0700)]
[PATCH] zr36067 driver - correct subfrequency carrier

attached patch changes the subfrequency carrier value in the adv7175
video output driver which is part of the zr36067 driver package. The
practical consequence is that the picture will be more stable on
non-passthrough video mode in NTSC. It does not affect PAL/SECAM. Patch
originally submitted by Douglas Fraser <ds-fraser@comcast.net> (8/21).

Signed-off-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Douglas Fraser <ds-fraser@comcast.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] zr36067 driver - use msleep() instead of schedule_timeout()
Ronald Bultje [Tue, 31 Aug 2004 03:40:19 +0000 (20:40 -0700)]
[PATCH] zr36067 driver - use msleep() instead of schedule_timeout()

attached patch makes the zr36067 driver use msleep() instead of
schedule_timeout() with uninterruptible state. Patch originally
submitted by Nishanth Aravamudan <nacc@us.ibm.com> (7/26).

Signed-off-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] zr36067 driver - correct i2c-algo-bit dependency in Kconfig
Ronald Bultje [Tue, 31 Aug 2004 03:40:07 +0000 (20:40 -0700)]
[PATCH] zr36067 driver - correct i2c-algo-bit dependency in Kconfig

attached patch correctly makes the zr36067 driver depend on i2c-ago-bit in
the kernel config.  Bug reported and patch sent to me by Adrian Bunk
<bunk@fs.tum.de> (6/21).  It wasn't signed off.

Signed-off-by: Ronald Bultje <rbultje@ronald.bitfreak.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix hardcoded value in vsyscall.lds
Brian Gerst [Tue, 31 Aug 2004 03:39:56 +0000 (20:39 -0700)]
[PATCH] Fix hardcoded value in vsyscall.lds

The last attempt to clean this up still left a hardcoded constant (the
offset from __FIXADDR_TOP).  This patch moves VSYSCALL_BASE to
asm-offsets.c.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] export more symbols on sparc32
Joshua Kwan [Tue, 31 Aug 2004 03:39:45 +0000 (20:39 -0700)]
[PATCH] export more symbols on sparc32

Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove ext2_panic() prototype
Andrew Morton [Tue, 31 Aug 2004 03:39:32 +0000 (20:39 -0700)]
[PATCH] remove ext2_panic() prototype

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] interrupt driven hvc_console as vio device
Ryan S. Arnold [Tue, 31 Aug 2004 03:39:20 +0000 (20:39 -0700)]
[PATCH] interrupt driven hvc_console as vio device

This is an hvc_console patch which provides driver and ppc64 architecture
fixes to enable the hvc_console driver to register itself as a vio device
with the vio bus, provide hotplug add/remove for vty adapters, and act as
an interrupt driven driver on Power-5 hardware or remain as a polling
driver on Power-4 hardware.

arch/ppc64/kernel/hvconsole.c
=============================

- Changed hvc_get_chars() and hvc_put_chars() api to take vtermno rather
  than index number.

- Added hvc_find_vtys() function which walks the bus looking for
  vterm/vty devices to callback to the hvc_console driver.  This provides
  console output functionality prior to early console init (pre mem init
  and pre device probe).

include/asm-ppc64/hvconsole.h
=============================

- Changed hvc_get_chars() and hvc_put_chars() api to take vtermno rather
  than index number.

- Added hvc_find_vtys() function.

- Added hvc_instantiate() function which is implemented by a console
  driver wanting to receive a callback of and early console init.

drivers/char/hvc_console.c
==========================

- Switch khvcd from kernel_threads to kthreads which got rid of
  deprecated daemonize().

- Added module exit clause to be thorough (not terribly necessary with a
  console driver of course)

- Added early discovery of vterm/vty adapters by doing a bus walk on
  early console init which results in hvc_instantiate() callback and
  addition of the vtermno into a static array of vtermnos supported as
  console adapters (meaning the console api's work against these vtermnos
  prior to full console initialization).

- This driver is now registered as a vio driver which means that vty
  adapters are now managed via probe/remove.  This means hvc_console
  supports hotplug vty adapters.

- Driver now requests more device nodes than what was found on the
  initial bus walk when registered as a tty driver to make room for hotplug
  vty adapters.  These secondary vty adapters provide a tty tunnel between
  partitions.

- Removed static hvc_struct array and replaced with a linux list that has
  elements (hvc_struct instances) added/removed on probe/remove AFTER early
  console init.  This is important because kmalloc can't be done at early
  console init.

- Driver now either runs in interrupt driven mode or in polling mode on
  older hardware.  The khvcd is smart enough to not 'schedule()' when there
  are no interrupts.

- kobjects are now used for ref counting on the hvc_struct instances.

- This driver puts the tty layer to sleep on hvc_close() if there are
  pending data writes being blocked by firmware.

- Removed useless spinlocks in hvc_chars_in_buffer() and hvc_write_room.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] synclinkmp transmit eom fix
Paul Fulghum [Tue, 31 Aug 2004 03:39:09 +0000 (20:39 -0700)]
[PATCH] synclinkmp transmit eom fix

Bug Fixes:

* Fix transmit end of message (EOM) processing to work correctly with
  hardware auto CTS feature

* Fix oops in error path if hardware diags fail during device
  initialization

Cosmetic change:

* Use existing macros for address space size instead of hardcoded values

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix a NULL pointer bug in do_generic_file_read()
David Howells [Tue, 31 Aug 2004 03:38:57 +0000 (20:38 -0700)]
[PATCH] Fix a NULL pointer bug in do_generic_file_read()

The attached patch fixes a bug introduced into do_generic_mapping_read() by
which a file pointer becomes required.  I'd arranged things so that the
file pointer was optional so that I could call the function directly on an
inode.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Make i386 signal delivery work with -mregparm
H. Peter Anvin [Tue, 31 Aug 2004 03:38:44 +0000 (20:38 -0700)]
[PATCH] Make i386 signal delivery work with -mregparm

This patch allows i386 signal delivery to work correctly when userspace is
compiled with -mregparm.  This is somewhat hacky: it passes the arguments
*both* on the stack and in registers, but it works because there are only
one or three (depending on SA_SIGINFO) official arguments.  If you're
relying on the unofficial arguments then you're doing something nonportable
anyway and can put in the __attribute__((cdecl,regparm(0))) in the correct
place.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netpoll: fix up trapped logic
Jeff Moyer [Tue, 31 Aug 2004 03:38:32 +0000 (20:38 -0700)]
[PATCH] netpoll: fix up trapped logic

This patch contains the updates necessary to fix the hangs in netconsole.
This includes the changing of trapped to an atomic_t, and the addition of a
netpoll_poll_lock.  It also turns dev->netpoll_rx into a bitfield which is
used to keep from running the networking code from the netpoll_poll call path.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netpoll: increase NAPI budget
Jeff Moyer [Tue, 31 Aug 2004 03:38:19 +0000 (20:38 -0700)]
[PATCH] netpoll: increase NAPI budget

I've upped the poll budget to 16 and added a comment explaining why.  I
definitely ran into this problem when testing netdump.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netpoll: kill CONFIG_NETPOLL_RX
Jeff Moyer [Tue, 31 Aug 2004 03:38:07 +0000 (20:38 -0700)]
[PATCH] netpoll: kill CONFIG_NETPOLL_RX

This patch removes CONFIG_NETPOLL_RX, as discussed.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netpoll: revert queue stopped change
Matt Mackall [Tue, 31 Aug 2004 03:37:55 +0000 (20:37 -0700)]
[PATCH] netpoll: revert queue stopped change

Here's the first of the broken out patch set.  This puts the check for
netif_queue_stopped back into netpoll_send_skb.  Network drivers are not
designed to have their hard_start_xmit routines called when the queue is
stopped.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netpoll: fix unaligned accesses
Matt Mackall [Tue, 31 Aug 2004 03:37:42 +0000 (20:37 -0700)]
[PATCH] netpoll: fix unaligned accesses

Avoid some alignment traps.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] tdfx linkage fix
Paolo Ornati [Tue, 31 Aug 2004 03:37:30 +0000 (20:37 -0700)]
[PATCH] tdfx linkage fix

drivers/built-in.o(.data+0x40a68): undefined reference to `cfb_fillrect'
drivers/built-in.o(.data+0x40a6c): undefined reference to `cfb_copyarea'

3dfx framebuffer driver depends on "cfb_fillrect.c" and "cfb_copyarea.c" if
it's compiled without CONFIG_FB_3DFX_ACCEL turned on...

Signed-off-by: Paolo Ornati <ornati@fastwebnet.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] use page_to_nid
Andy Whitcroft [Tue, 31 Aug 2004 03:37:17 +0000 (20:37 -0700)]
[PATCH] use page_to_nid

There are a couple of places where we seem to go round the houses to get
the numa node id from a page.  We have a macro for this so it seems
sensible to use that.

Both lookup_node and enqueue_huge_page use page_zone() to locate the zone,
that to locate node pgdat_t and that to get the node_id.  Its more
efficient to use page_to_nid() which gets the nid from the page flags,
especially if we are not using the zone for anything else it.  Change these
to use page_to_nid().

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i386 bootmem restrictions
Andy Whitcroft [Tue, 31 Aug 2004 03:37:03 +0000 (20:37 -0700)]
[PATCH] i386 bootmem restrictions

(Comment changes only)

The bootmem allocator is initialised before the kernel virtual address
space has been fully established.  As a result, any allocations which are
made before paging_init() has completed may point to invalid kernel
addresses.  This patch notes this limitation and indicates where the
allocator is fully available.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Don't OOPS on stripped modules
Rusty Russell [Tue, 31 Aug 2004 03:36:51 +0000 (20:36 -0700)]
[PATCH] Don't OOPS on stripped modules

Don't want to go overboard with the checks, but this is simple and
reasonable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified)
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Prevent memory leak in devpts
Olaf Kirch [Tue, 31 Aug 2004 03:36:39 +0000 (20:36 -0700)]
[PATCH] Prevent memory leak in devpts

There is a dentry refcount leak in devpts_get_tty.

struct tty_struct *devpts_get_tty(int number)
{
        struct dentry *dentry = get_node(number);
        struct tty_struct *tty;

        tty = (IS_ERR(dentry) || !dentry->d_inode) ? NULL :
                        dentry->d_inode->u.generic_ip;

        up(&devpts_root->d_inode->i_sem);
        return tty;
}

The get_node function does a lookup on /dev/pts/<number> and returns the
dentry, taking a reference.  We should dput the dentry after extracting the
tty pointer.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Amiga partition reading fix
Joanne Dow [Tue, 31 Aug 2004 03:36:26 +0000 (20:36 -0700)]
[PATCH] Amiga partition reading fix

I have a large archive of files stored on Amiga volumes.  Many of these
volumes are on Fujitsu magneto-optical disks with 2k sector size.  The
existing partitioning code cannot properly read them since it appears the
OS automatically deblocks the large sectors into logical 512 byte sectors,
something AmigaDOS never did.  I arranged the partitioning code to handle
this situation.

Second I have some rather strange test case disks, including my largest
storage partition, that have somewhat unusual partition values.  As such I
needed additional information in addition to the first and last block
number information.  AmigaDOS reserves N blocks, with N greater than or
equal to 1 and less than the size of the partition, for some boot time
information and signatures.  I have some partitions that use other than the
usual value of 2.

There is one more "fix" that could be put in if someone needs it.  Another
value in the "Rigid Disk Blocks" description of a partition is a "PreAlloc"
value.  It defines a number of blocks at the end of the disk that are not
considered to be a real part of the partition.  This was "important" in the
days of 20 meg and 40 meg hard disks.  It is hardly important and not used
on modern drives without special user intervention.

This partitioning information is known correct.  I wrote the low level
portion of the hard disk partitioning code for AmigaDOS 3.5 and 3.9.  I am
also responsible for one of the more frequently used partitioning tools,
RDPrepX, before that.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>