Linux 2.6.19.5
Subsystems (15)
We (the -stable team) are announcing the release of the 2.6.19.5 kernel. It contains a number of bugfixes, and all 2.6.19 users are recommended to upgrade.
There will be one more 2.6.19 based release, due to all of the patches that people have sent in after the review set of patches for this release was posted. So if you have sent in new patches, don't worry if you do not see them in this release, they should be taken care of next week.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.19.4 and 2.6.19.5, as it is small enough to do so.
The updated 2.6.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.19.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
greg k-h
--------
Makefile | 2 arch/x86_64/ia32/ptrace32.c | 1 drivers/ata/pata_amd.c | 4 - drivers/ide/ide-iops.c | 2 drivers/media/video/ks0127.c | 8 +- drivers/media/video/tveeprom.c | 2 drivers/media/video/usbvideo/quickcam_messenger.h | 14 ----- drivers/media/video/video-buf.c | 1 drivers/net/8139too.c | 5 + drivers/net/smc911x.c | 5 + drivers/net/wireless/bcm43xx/bcm43xx.h | 2 drivers/net/wireless/bcm43xx/bcm43xx_main.c | 8 +- drivers/net/wireless/bcm43xx/bcm43xx_xmit.h | 10 --- drivers/net/wireless/prism54/isl_ioctl.c | 8 ++ drivers/rtc/rtc-pcf8563.c | 40 ++++++++++++-- fs/aio.c | 20 +++---- include/asm-x86_64/bitops.h | 34 +++++++----- include/linux/sunrpc/svcsock.h | 2 net/sunrpc/svc.c | 4 - net/sunrpc/svcsock.c | 52 ++++++++++++++----- security/keys/key.c | 33 +++++------- sound/usb/usbaudio.c | 59 ++++++++++++++-------- 22 files changed, 188 insertions(+), 128 deletions(-)
Summary of changes from v2.6.18.7 to v2.6.18.8
==============================================
Andi Kleen (1):
Use different constraint for gcc < 4.1 in bitops.
Atsushi Nemoto (1):
rtc-pcf8563: detect polarity of century bit automatically
Dan Williams (1):
prism54: correct assignment of DOT1XENABLE in WE-19 codepaths
David Howells (1):
Keys: Fix key serial number collision handling
Grant Likely (1):
V4L: Fix quickcam communicator driver for big endian architectures
Greg Kroah-Hartman (1):
Linux 2.6.19.5
Ingo Molnar (1):
net, 8139too.c: fix netpoll deadlock
Ken Chen (1):
aio: fix buggy put_ioctx call in aio_complete - v2
Larry Finger (1):
bcm43xx: Fix for oops on resume
Martin Samuelsson (1):
V4L: fix ks0127 status flags
Michael Buesch (1):
bcm43xx: Fix for oops on ampdu status
Michael Krufky (1):
V4L: tveeprom: autodetect LG TAPC G701D as tuner type 37
NeilBrown (1):
knfsd: Fix a race in closing NFSd connections.
Oleg Nesterov (1):
V4L: buf_qbuf: fix videobuf_queue->stream corruption and lockup
Paolo 'Blaisorblade' Giarrusso (1):
x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted
Peter Korsgaard (1):
net/smc911x: match up spin lock/unlock
Takashi Iwai (3):
usb-audio: work around wrong frequency in CM6501 descriptors usbaudio - Fix Oops with broken usb descriptors usbaudio - Fix Oops with unconventional sample rates
Tejun Heo (2):
ide: fix drive side 80c cable check
pata_amd: fix an obvious bug in cable detection
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 19 -EXTRAVERSION = .4 +EXTRAVERSION = .5 NAME=Avast! A bilge rat! # *DOCUMENTATION*
arch/x86_64/ia32/ptrace32.c +1 -0
@@ -243,6 +243,7 @@ asmlinkage long sys32_ptrace(long request, u32 pid, u32 addr, u32 data)case PTRACE_SINGLESTEP :case PTRACE_DETACH :case PTRACE_SYSCALL : +case PTRACE_OLDSETOPTIONS :case PTRACE_SETOPTIONS :case PTRACE_SET_THREAD_AREA :case PTRACE_GET_THREAD_AREA :
drivers/ata/pata_amd.c +2 -2
@@ -128,7 +128,7 @@ static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offsestatic int amd_pre_reset (struct ata_port *ap) { -static const u32 bitmask[2 ] = {0x03 ,0xC0 }; +static const u32 bitmask[2 ] = {0x03 ,0x0C };static const struct pci_bits amd_enable_bits[] = { {0x40 ,1 ,0x02 ,0x02 }, {0x40 ,1 ,0x01 ,0x01 }
@@ -247,7 +247,7 @@ static void amd133_set_dmamode(struct ata_port *ap, struct ata_device *adev)*/ static int nv_pre_reset (struct ata_port *ap) { -static const u8 bitmask[2 ] = {0x03 ,0xC0 }; +static const u8 bitmask[2 ] = {0x03 ,0x0C };static const struct pci_bits nv_enable_bits[] = { {0x50 ,1 ,0x02 ,0x02 }, {0x50 ,1 ,0x01 ,0x01 }
drivers/ide/ide-iops.c +2 -0
@@ -607,6 +607,8 @@ u8 eighty_ninty_three (ide_drive_t *drive)if (!(drive->id->hw_config &0x4000 ))return 0 ;#endif /* CONFIG_IDEDMA_IVB */ +if (!(drive->id->hw_config &0x2000 )) +return 0 ;return 1 ; }
drivers/media/video/ks0127.c +4 -4
@@ -712,13 +712,13 @@ static int ks0127_command(struct i2c_client *client, *iarg =0 ; status =ks0127_read (ks,KS_STAT );if (!(status &0x20 ))/* NOVID not set */ - *iarg = (*iarg &DECODER_STATUS_GOOD ); + *iarg = (*iarg |DECODER_STATUS_GOOD );if ((status &0x01 ))/* CLOCK set */ - *iarg = (*iarg &DECODER_STATUS_COLOR ); + *iarg = (*iarg |DECODER_STATUS_COLOR );if ((status &0x08 ))/* PALDET set */ - *iarg = (*iarg &DECODER_STATUS_PAL ); + *iarg = (*iarg |DECODER_STATUS_PAL );else - *iarg = (*iarg &DECODER_STATUS_NTSC ); + *iarg = (*iarg |DECODER_STATUS_NTSC );break ;//Catch any unknown command
drivers/media/video/tveeprom.c +1 -1
@@ -184,7 +184,7 @@ hauppauge_tuner[] = { TUNER_ABSENT, "Thompson DTT757"},/* 80-89 */ { TUNER_ABSENT, "Philips FQ1216LME MK3"}, - { TUNER_ABSENT, "LG TAPC G701D"}, + { TUNER_LG_PAL_NEW_TAPC, "LG TAPC G701D"}, { TUNER_LG_NTSC_NEW_TAPC, "LG TAPC H791F"}, { TUNER_LG_PAL_NEW_TAPC, "TCL 2002MB 3"}, { TUNER_LG_PAL_NEW_TAPC, "TCL 2002MI 3"},
drivers/media/video/usbvideo/quickcam_messenger.h +0 -14
@@ -35,27 +35,13 @@ struct rgb { };struct bayL0 { -#ifdef __BIG_ENDIAN -u8 r; -u8 g; -#elif __LITTLE_ENDIANu8 g;u8 r; -#else -#error not byte order defined -#endif };struct bayL1 { -#ifdef __BIG_ENDIAN -u8 g; -u8 b; -#elif __LITTLE_ENDIANu8 b;u8 g; -#else -#error not byte order defined -#endif };struct cam_size {
drivers/media/video/video-buf.c +1 -0
@@ -700,6 +700,7 @@ videobuf_qbuf(struct videobuf_queue *q, goto done; }if (buf->state ==STATE_QUEUED || + buf->state ==STATE_PREPARED || buf->state ==STATE_ACTIVE ) {dprintk (1 ,"qbuf: buffer is already queued or active.\n" ); goto done;
drivers/net/8139too.c +3 -2
@@ -2129,14 +2129,15 @@ static int rtl8139_poll(struct net_device *dev, int *budget) }if (done) { +unsigned long flags;/* * Order is important since data can get interrupted * again when we think we are done. */ -local_irq_disable (); +local_irq_save (flags);RTL_W16_F (IntrMask, rtl8139_intr_mask);__netif_rx_complete (dev); -local_irq_enable (); +local_irq_restore (flags); }spin_unlock (&tp->rx_lock);
drivers/net/smc911x.c +3 -2
@@ -965,11 +965,11 @@ static void smc911x_phy_configure(void *data)* We should not be called if phy_type is zero. */ if (lp->phy_type ==0 ) - goto smc911x_phy_configure_exit; + goto smc911x_phy_configure_exit_nolock;if (smc911x_phy_reset (dev, phyaddr)) {printk ("%s: PHY reset timed out\n" , dev->name); - goto smc911x_phy_configure_exit; + goto smc911x_phy_configure_exit_nolock; }spin_lock_irqsave (&lp->lock, flags);
@@ -1038,6 +1038,7 @@ static void smc911x_phy_configure(void *data) smc911x_phy_configure_exit:spin_unlock_irqrestore (&lp->lock, flags); +smc911x_phy_configure_exit_nolock: lp->work_pending =0 ; }
drivers/net/wireless/bcm43xx/bcm43xx.h +1 -1
@@ -21,7 +21,7 @@#define PFX KBUILD_MODNAME ": "#define BCM43xx_SWITCH_CORE_MAX_RETRIES 50 -#define BCM43xx_IRQWAIT_MAX_RETRIES 50 +#define BCM43xx_IRQWAIT_MAX_RETRIES 100#define BCM43xx_IO_SIZE 8192
drivers/net/wireless/bcm43xx/bcm43xx_main.c +3 -5
@@ -1449,12 +1449,10 @@ static void handle_irq_transmit_status(struct bcm43xx_private *bcm)bcm43xx_debugfs_log_txstat (bcm, &stat); -if (stat.flags & BCM43xx_TXSTAT_FLAG_IGNORE) +if (stat.flags & BCM43xx_TXSTAT_FLAG_AMPDU) +continue ; +if (stat.flags & BCM43xx_TXSTAT_FLAG_INTER)continue ; -if (!(stat.flags & BCM43xx_TXSTAT_FLAG_ACK)) { -//TODO: packet was not acked (was lost) - } -//TODO: There are more (unknown) flags to test. see bcm43xx_main.h if (bcm43xx_using_pio (bcm))bcm43xx_pio_handle_xmitstatus (bcm, &stat);
drivers/net/wireless/bcm43xx/bcm43xx_xmit.h +2 -8
@@ -137,14 +137,8 @@ struct bcm43xx_xmitstatus {u16 unknown;//FIXME }; -#define BCM43xx_TXSTAT_FLAG_ACK 0x01 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x02 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x04 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x08 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x10 -#define BCM43xx_TXSTAT_FLAG_IGNORE 0x20 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x40 -//TODO #define BCM43xx_TXSTAT_FLAG_??? 0x80 +#define BCM43xx_TXSTAT_FLAG_AMPDU 0x10 +#define BCM43xx_TXSTAT_FLAG_INTER 0x20u8 bcm43xx_plcp_get_ratecode_cck (const u8 bitrate);u8 bcm43xx_plcp_get_ratecode_ofdm (const u8 bitrate);
drivers/net/wireless/prism54/isl_ioctl.c +7 -1
@@ -1395,11 +1395,16 @@ static int prism54_set_auth(struct net_device *ndev,break ;case IW_AUTH_RX_UNENCRYPTED_EAPOL : - dot1x = param->value ?1 :0 ; +/* dot1x should be the opposite of RX_UNENCRYPTED_EAPOL; +* turn off dot1x when allowing recepit of unencrypted eapol +* frames, turn on dot1x when we disallow receipt +*/ + dot1x = param->value ?0x00 :0x01 ;break ;case IW_AUTH_PRIVACY_INVOKED : privinvoked = param->value ?1 :0 ; +break ;case IW_AUTH_DROP_UNENCRYPTED : exunencrypt = param->value ?1 :0 ;
@@ -1589,6 +1594,7 @@ static int prism54_set_encodeext(struct net_device *ndev, } key.type =DOT11_PRIV_TKIP ; key.length =KEY_SIZE_TKIP ; +break ;default :return -EINVAL ; }
drivers/rtc/rtc-pcf8563.c +34 -6
@@ -53,6 +53,25 @@ I2C_CLIENT_INSMOD;#define PCF8563_SC_LV 0x80/* low voltage */ #define PCF8563_MO_C 0x80/* century */ +struct pcf8563 { +struct i2c_client client; +/* +* The meaning of MO_C bit varies by the chip type. +* From PCF8563 datasheet: this bit is toggled when the years +* register overflows from 99 to 00 +* 0 indicates the century is 20xx +* 1 indicates the century is 19xx +* From RTC8564 datasheet: this bit indicates change of +* century. When the year digit data overflows from 99 to 00, +* this bit is set. By presetting it to 0 while still in the +* 20th century, it will be set in year 2000, ... +* There seems no reliable way to know how the system use this +* bit. So let's do it heuristically, assuming we are live in +* 1970...2069. +*/ +int c_polarity;/* 0: MO_C=1 means 19xx, otherwise MO_C=1 means 20xx */ +}; +static int pcf8563_probe (struct i2c_adapter *adapter,int address,int kind);static int pcf8563_detach (struct i2c_client *client);
@@ -62,6 +81,7 @@ static int pcf8563_detach(struct i2c_client *client);*/ static int pcf8563_get_datetime (struct i2c_client *client,struct rtc_time *tm) { + struct pcf8563 *pcf8563 = container_of(client, struct pcf8563, client);unsigned char buf[13 ] = {PCF8563_REG_ST1 };struct i2c_msg msgs[] = {
@@ -94,8 +114,12 @@ static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) tm->tm_mday =BCD2BIN (buf[PCF8563_REG_DM ] &0x3F ); tm->tm_wday = buf[PCF8563_REG_DW ] &0x07 ; tm->tm_mon =BCD2BIN (buf[PCF8563_REG_MO ] &0x1F ) -1 ;/* rtc mn 1-12 */ - tm->tm_year =BCD2BIN (buf[PCF8563_REG_YR ]) - + (buf[PCF8563_REG_MO ] &PCF8563_MO_C ?0 :100 ); + tm->tm_year =BCD2BIN (buf[PCF8563_REG_YR ]); +if (tm->tm_year <70 ) + tm->tm_year +=100 ;/* assume we are in 1970...2069 */ +/* detect the polarity heuristically. see note above. */ + pcf8563->c_polarity = (buf[PCF8563_REG_MO ] &PCF8563_MO_C ) ? + (tm->tm_year >=100 ) : (tm->tm_year <100 ); dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " "mday=%d, mon=%d, year=%d, wday=%d\n",
@@ -114,6 +138,7 @@ static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm)static int pcf8563_set_datetime (struct i2c_client *client,struct rtc_time *tm) { + struct pcf8563 *pcf8563 = container_of(client, struct pcf8563, client);int i, err;unsigned char buf[9 ];
@@ -135,7 +160,7 @@ static int pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm)/* year and century */ buf[PCF8563_REG_YR ] =BIN2BCD (tm->tm_year %100 ); -if (tm->tm_year <100 ) +if (pcf8563->c_polarity ? (tm->tm_year >=100 ) : (tm->tm_year <100 )) buf[PCF8563_REG_MO ] |=PCF8563_MO_C ; buf[PCF8563_REG_DW ] = tm->tm_wday &0x07 ;
@@ -248,6 +273,7 @@ static struct i2c_driver pcf8563_driver = {static int pcf8563_probe (struct i2c_adapter *adapter,int address,int kind) { +struct pcf8563 *pcf8563;struct i2c_client *client;struct rtc_device *rtc;
@@ -260,11 +286,12 @@ static int pcf8563_probe(struct i2c_adapter *adapter, int address, int kind) goto exit; } -if (!(client =kzalloc (sizeof (struct i2c_client ),GFP_KERNEL ))) { +if (!(pcf8563 =kzalloc (sizeof (struct pcf8563 ),GFP_KERNEL ))) { err = -ENOMEM ; goto exit; } + client = &pcf8563->client; client->addr = address; client->driver = &pcf8563_driver; client->adapter = adapter;
@@ -301,7 +328,7 @@ exit_detach:i2c_detach_client (client); exit_kfree: -kfree (client); +kfree (pcf8563); exit:return err;
@@ -309,6 +336,7 @@ exit:static int pcf8563_detach (struct i2c_client *client) { + struct pcf8563 *pcf8563 = container_of(client, struct pcf8563, client);int err;struct rtc_device *rtc =i2c_get_clientdata (client);
@@ -318,7 +346,7 @@ static int pcf8563_detach(struct i2c_client *client)if ((err =i2c_detach_client (client)))return err; -kfree (client); +kfree (pcf8563);return 0 ; }
fs/aio.c +9 -11
@@ -298,17 +298,23 @@ static void wait_for_all_aios(struct kioctx *ctx)struct task_struct *tsk = current;DECLARE_WAITQUEUE (wait, tsk); +spin_lock_irq (&ctx->ctx_lock);if (!ctx->reqs_active) -return ; + goto out;add_wait_queue (&ctx->wait, &wait);set_task_state (tsk,TASK_UNINTERRUPTIBLE );while (ctx->reqs_active) { +spin_unlock_irq (&ctx->ctx_lock);schedule ();set_task_state (tsk,TASK_UNINTERRUPTIBLE ); +spin_lock_irq (&ctx->ctx_lock); }__set_task_state (tsk,TASK_RUNNING );remove_wait_queue (&ctx->wait, &wait); + +out: +spin_unlock_irq (&ctx->ctx_lock); }/* wait_on_sync_kiocb:
@@ -425,7 +431,6 @@ static struct kiocb fastcall *__aio_get_req(struct kioctx *ctx) ring =kmap_atomic (ctx->ring_info.ring_pages[0 ],KM_USER0 );if (ctx->reqs_active <aio_ring_avail (&ctx->ring_info, ring)) {list_add (&req->ki_list, &ctx->active_reqs); -get_ioctx (ctx); ctx->reqs_active++; okay =1 ; }
@@ -538,8 +543,6 @@ int fastcall aio_put_req(struct kiocb *req)spin_lock_irq (&ctx->ctx_lock); ret =__aio_put_req (ctx, req);spin_unlock_irq (&ctx->ctx_lock); -if (ret) -put_ioctx (ctx);return ret; }
@@ -795,8 +798,7 @@ static int __aio_run_iocbs(struct kioctx *ctx)*/ iocb->ki_users++;/* grab extra reference */ aio_run_iocb (iocb); -if (__aio_put_req (ctx, iocb))/* drop extra ref */ -put_ioctx (ctx); +__aio_put_req (ctx, iocb); }if (!list_empty (&ctx->run_list))return 1 ;
@@ -1014,14 +1016,10 @@ put_rq:/* everything turned out well, dispose of the aiocb. */ ret =__aio_put_req (ctx, iocb); -spin_unlock_irqrestore (&ctx->ctx_lock, flags); -if (waitqueue_active (&ctx->wait))wake_up (&ctx->wait); -if (ret) -put_ioctx (ctx); - +spin_unlock_irqrestore (&ctx->ctx_lock, flags);return ret; }
include/asm-x86_64/bitops.h +20 -14
@@ -7,7 +7,13 @@#include <asm/alternative.h> -#define ADDR (*(volatile long *) addr) +#if __GNUC__ <4 || (__GNUC__ ==4 && __GNUC_MINOR__ <1 ) +/* Technically wrong, but this avoids compilation errors on some gcc +versions. */ +#define ADDR "=m" (*(volatile long *) addr) +#else +#define ADDR "+m" (*(volatile long *) addr) +#endif /** * set_bit - Atomically set a bit in memory
@@ -23,7 +29,7 @@ static __inline__ void set_bit(int nr, volatile void * addr) { __asm__ __volatile__(LOCK_PREFIX "btsl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr) :"memory" ); }
@@ -40,7 +46,7 @@ static __inline__ void __set_bit(int nr, volatile void * addr) { __asm__volatile ("btsl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr) :"memory" ); }
@@ -58,7 +64,7 @@ static __inline__ void clear_bit(int nr, volatile void * addr) { __asm__ __volatile__(LOCK_PREFIX "btrl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr)); }
@@ -66,7 +72,7 @@ static __inline__ void __clear_bit(int nr, volatile void * addr) { __asm__ __volatile__("btrl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr)); }
@@ -86,7 +92,7 @@ static __inline__ void __change_bit(int nr, volatile void * addr) { __asm__ __volatile__("btcl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr)); }
@@ -103,7 +109,7 @@ static __inline__ void change_bit(int nr, volatile void * addr) { __asm__ __volatile__(LOCK_PREFIX "btcl %1,%0" - :"+m" (ADDR ) + :ADDR :"dIr" (nr)); }
@@ -121,7 +127,7 @@ static __inline__ int test_and_set_bit(int nr, volatile void * addr) __asm__ __volatile__(LOCK_PREFIX "btsl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr) :"memory" );return oldbit; }
@@ -141,7 +147,7 @@ static __inline__ int __test_and_set_bit(int nr, volatile void * addr) __asm__("btsl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr));return oldbit; }
@@ -160,7 +166,7 @@ static __inline__ int test_and_clear_bit(int nr, volatile void * addr) __asm__ __volatile__(LOCK_PREFIX "btrl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr) :"memory" );return oldbit; }
@@ -180,7 +186,7 @@ static __inline__ int __test_and_clear_bit(int nr, volatile void * addr) __asm__("btrl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr));return oldbit; }
@@ -192,7 +198,7 @@ static __inline__ int __test_and_change_bit(int nr, volatile void * addr) __asm__ __volatile__("btcl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr) :"memory" );return oldbit; }
@@ -211,7 +217,7 @@ static __inline__ int test_and_change_bit(int nr, volatile void * addr) __asm__ __volatile__(LOCK_PREFIX "btcl %2,%1\n\tsbbl %0,%0" - :"=r" (oldbit),"+m" (ADDR ) + :"=r" (oldbit),ADDR :"dIr" (nr) :"memory" );return oldbit; }
@@ -237,7 +243,7 @@ static __inline__ int variable_test_bit(int nr, volatile const void * addr) __asm__ __volatile__("btl %2,%1\n\tsbbl %0,%0" :"=r" (oldbit) - :"m" (ADDR ),"dIr" (nr)); + :"m" (*(volatile long *)addr),"dIr" (nr));return oldbit; }
include/linux/sunrpc/svcsock.h +1 -1
@@ -63,7 +63,7 @@ struct svc_sock {* Function prototypes. */ int svc_makesock (struct svc_serv *,int ,unsigned short ); -void svc_delete_socket (struct svc_sock *); +void svc_close_socket (struct svc_sock *);int svc_recv (struct svc_rqst *,long );int svc_send (struct svc_rqst *);void svc_drop (struct svc_rqst *);
net/sunrpc/svc.c +2 -2
@@ -387,7 +387,7 @@ svc_destroy(struct svc_serv *serv) svsk =list_entry (serv->sv_tempsocks.next, struct svc_sock, sk_list); -svc_delete_socket (svsk); +svc_close_socket (svsk); }if (serv->sv_shutdown) serv->sv_shutdown (serv);
@@ -396,7 +396,7 @@ svc_destroy(struct svc_serv *serv) svsk =list_entry (serv->sv_permsocks.next, struct svc_sock, sk_list); -svc_delete_socket (svsk); +svc_close_socket (svsk); }cache_clean_deferred (serv);
net/sunrpc/svcsock.c +38 -14
120 lines not on this page · raw message
security/keys/key.c +14 -19
@@ -188,6 +188,7 @@ static inline void key_alloc_serial(struct key *key)spin_lock (&key_serial_lock); +attempt_insertion: parent =NULL ; p = &key_serial_tree.rb_node;
@@ -202,39 +203,33 @@ static inline void key_alloc_serial(struct key *key)else goto serial_exists; } - goto insert_here; + +/* we've found a suitable hole - arrange for this key to occupy it */ +rb_link_node (&key->serial_node, parent, p); +rb_insert_color (&key->serial_node, &key_serial_tree); + +spin_unlock (&key_serial_lock); +return ;/* we found a key with the proposed serial number - walk the tree from * that point looking for the next unused serial number */ serial_exists:for (;;) { key->serial++; -if (key->serial <2 ) - key->serial =2 ; - -if (!rb_parent (parent)) - p = &key_serial_tree.rb_node; -else if (rb_parent (parent)->rb_left == parent) - p = &(rb_parent (parent)->rb_left); -else - p = &(rb_parent (parent)->rb_right); +if (key->serial <3 ) { + key->serial =3 ; + goto attempt_insertion; + } parent =rb_next (parent);if (!parent) -break ; + goto attempt_insertion; xkey = rb_entry(parent, struct key, serial_node);if (key->serial < xkey->serial) - goto insert_here; + goto attempt_insertion; } -/* we've found a suitable hole - arrange for this key to occupy it */ -insert_here: -rb_link_node (&key->serial_node, parent, p); -rb_insert_color (&key->serial_node, &key_serial_tree); - -spin_unlock (&key_serial_lock); - }/* end key_alloc_serial() */ /*****************************************************************************/
sound/usb/usbaudio.c +39 -20
98 lines not on this page · raw message