Linux 3.4.66
Greg KH
maintainerI'm announcing the release of the 3.4.66 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 - arch/arm/mm/init.c | 3 + arch/ia64/mm/contig.c | 2 + arch/ia64/mm/discontig.c | 2 + arch/parisc/mm/init.c | 2 + arch/powerpc/kernel/iommu.c | 2 - arch/powerpc/kernel/vio.c | 12 ++++-- arch/powerpc/lib/checksum_64.S | 4 +- arch/sparc/kernel/entry.S | 2 - arch/sparc/kernel/ktlb.S | 3 - arch/sparc/kernel/syscalls.S | 8 ++-- arch/sparc/kernel/trampoline_64.S | 2 - arch/sparc/lib/ksyms.c | 9 ---- arch/tile/include/asm/percpu.h | 34 ++++++++++++++++- arch/unicore32/mm/init.c | 3 + drivers/acpi/acpi_ipmi.c | 24 +++++++----- drivers/block/cciss.c | 1 drivers/block/cpqarray.c | 1 drivers/dma/imx-dma.c | 31 +++++++--------- drivers/infiniband/ulp/srpt/ib_srpt.c | 14 +++---- drivers/net/bonding/bond_main.c | 13 +++++- drivers/net/ethernet/freescale/gianfar.c | 11 +++++ drivers/net/ethernet/freescale/gianfar.h | 11 +++++ drivers/net/ethernet/via/via-rhine.c | 9 +++- drivers/net/ethernet/xilinx/ll_temac_main.c | 6 +++ drivers/net/ppp/pptp.c | 2 - drivers/net/usb/dm9601.c | 2 - drivers/net/wireless/p54/p54usb.c | 1 drivers/net/wireless/rtlwifi/wifi.h | 2 - drivers/scsi/esp_scsi.c | 14 ++++--- drivers/scsi/esp_scsi.h | 1 drivers/staging/comedi/drivers/ni_65xx.c | 26 +++++-------- drivers/usb/serial/option.c | 3 + fs/btrfs/relocation.c | 14 +++---- fs/ext4/namei.c | 3 + include/linux/mm.h | 3 + include/net/ip.h | 12 ++++-- include/net/ipip.h | 2 - lib/show_mem.c | 3 + mm/page_alloc.c | 7 +++ net/bluetooth/hci_event.c | 6 ++- net/bridge/br_private.h | 1 net/bridge/br_stp.c | 23 ++++++++---- net/bridge/br_stp_if.c | 12 +++++- net/caif/cfctrl.c | 3 + net/core/flow_dissector.c | 4 +- net/core/netpoll.c | 9 ++-- net/ipv4/igmp.c | 8 ++-- net/ipv4/inetpeer.c | 4 +- net/ipv4/ip_output.c | 8 ++-- net/ipv4/ipmr.c | 2 - net/ipv4/raw.c | 2 - net/ipv4/xfrm4_mode_tunnel.c | 2 - net/ipv6/ip6_output.c | 53 +++++++++++----------------- net/ipv6/mcast.c | 4 +- net/netfilter/ipvs/ip_vs_xmit.c | 2 - net/sctp/ipv6.c | 42 ++++++---------------- net/sctp/socket.c | 3 + sound/soc/codecs/88pm860x-codec.c | 3 + sound/soc/codecs/max98095.c | 4 +- 60 files changed, 297 insertions(+), 204 deletions(-)
Andre Guedes (2):
Bluetooth: Fix security level for peripheral role
Bluetooth: Fix encryption key size for peripheral role
Ansis Atteka (2):
ip: use ip_hdr() in __ip_make_skb() to retrieve IP header
ip: generate unique IP identificator if local fragmentation is allowed
Chris Healy (1):
resubmit bridge: fix message_age_timer calculation
Chris Metcalf (1):
tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT
Christian Lamparter (1):
p54usb: add USB ID for Corega WLUSB2GTST USB adapter
Claudiu Manoil (1):
gianfar: Change default HW Tx queue scheduling mode
Dan Carpenter (4):
cpqarray: fix info leak in ida_locked_ioctl()
cciss: fix info leak in cciss_ioctl32_passthru()
ASoC: max98095: a couple array underflows
ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st()
Daniel Borkmann (2):
net: sctp: fix smatch warning in sctp_send_asconf_del_ip
net: sctp: fix ipv6 ipsec encryption bug in sctp_v6_xmit
Dave Jones (1):
caif: Add missing braces to multiline if in cfctrl_linkup_request
David Rientjes (1):
mm, show_mem: suppress page counts in non-blockable contexts
David S. Miller (2):
esp_scsi: Fix tag state corruption when autosensing.
sparc64: Fix off by one in trampoline TLB mapping installation loop.
Eric Dumazet (1):
net: flow_dissector: fix thoff for IPPROTO_AH
Greg Kroah-Hartman (1):
Linux 3.4.66
Hannes Frederic Sowa (1):
ipv6: udp packets following an UFO enqueued packet need also be handled by UFO
Herbert Xu (1):
bridge: Clamp forward_delay when enabling STP
Ian Abbott (1):
staging: comedi: ni_65xx: (bug fix) confine insn_bits to one subdevice
Jack Wang (1):
ib_srpt: always set response for task management
Josef Bacik (1):
Btrfs: change how we queue blocks for backref checking
Kirill Tkhai (4):
sparc64: Fix ITLB handler of null page
sparc64: Remove RWSEM export leftovers
sparc64: Fix not SRA'ed %o5 in 32-bit traced syscall
sparc32: Fix exit flag passed from traced sys_sigreturn
Larry Finger (1):
rtlwifi: Align private space in rtl_priv struct
Lv Zheng (1):
ACPI / IPMI: Fix atomic context requirement of ipmi_msg_handler()
Michael Grzeschik (3):
dmaengine: imx-dma: fix lockdep issue between irqhandler and tasklet
dmaengine: imx-dma: fix callback path in tasklet
dmaengine: imx-dma: fix slow path issue in prep_dma_cyclic
Michal Malý (1):
USB: serial: option: Ignore card reader interface on Huawei E1750
Neil Horman (1):
bonding: Fix broken promiscuity reference counting issue
Nicholas Bellinger (1):
ib_srpt: Destroy cm_id before destroying QP.
Nikolay Aleksandrov (1):
netpoll: fix NULL pointer dereference in netpoll_cleanup
Nishanth Aravamudan (1):
powerpc/iommu: Use GFP_KERNEL instead of GFP_ATOMIC in iommu_init_table()
Paul E. McKenney (1):
powerpc: Fix parameter clobber in csum_partial_copy_generic()
Peter Korsgaard (1):
dm9601: fix IFF_ALLMULTI handling
Prarit Bhargava (1):
powerpc/vio: Fix modalias_show return values
Ricardo Ribalda (1):
ll_temac: Reset dma descriptors indexes on ndo_open
Roger Luethi (1):
via-rhine: fix VLAN priority field (PCP, IEEE 802.1p)
Salam Noureddine (2):
ipv4 igmp: use in_dev_put in timer handlers instead of __in_dev_put ipv6 mcast: use in6_dev_put in timer handlers instead of __in6_dev_put
Theodore Ts'o (1):
ext4: avoid hang when mounting non-journal filesystems with orphan list
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 65 +SUBLEVEL = 66 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mm/init.c +3 -0
@@ -98,6 +98,9 @@ void show_mem(unsigned int filter)printk ("Mem-info:\n" );show_free_areas (filter); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ; + for_each_bank (i, mi) {struct membank *bank = &mi->bank[i];unsigned int pfn1, pfn2;
arch/ia64/mm/contig.c +2 -0
@@ -47,6 +47,8 @@ void show_mem(unsigned int filter)printk (KERN_INFO "Mem-info:\n" );show_free_areas (filter);printk (KERN_INFO "Node memory in pages:\n" ); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ;for_each_online_pgdat (pgdat) {unsigned long present;unsigned long flags;
arch/ia64/mm/discontig.c +2 -0
@@ -623,6 +623,8 @@ void show_mem(unsigned int filter)printk (KERN_INFO "Mem-info:\n" );show_free_areas (filter); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ;printk (KERN_INFO "Node memory in pages:\n" );for_each_online_pgdat (pgdat) {unsigned long present;
arch/parisc/mm/init.c +2 -0
@@ -685,6 +685,8 @@ void show_mem(unsigned int filter)printk (KERN_INFO "Mem-info:\n" );show_free_areas (filter); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ;#ifndef CONFIG_DISCONTIGMEM i = max_mapnr;while (i-- >0 ) {
arch/powerpc/kernel/iommu.c +1 -1
@@ -501,7 +501,7 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid)/* number of bytes needed for the bitmap */ sz = (tbl->it_size +7 ) >>3 ; - page =alloc_pages_node (nid,GFP_ATOMIC ,get_order (sz)); + page =alloc_pages_node (nid,GFP_KERNEL ,get_order (sz));if (!page)panic ("iommu_init_table: Can't allocate %ld bytes\n" , sz); tbl->it_map =page_address (page);
arch/powerpc/kernel/vio.c +8 -4
@@ -1341,11 +1341,15 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,const char *cp; dn = dev->of_node; -if (!dn) -return -ENODEV ; +if (!dn) { +strcat (buf,"\n" ); +return strlen (buf); + } cp =of_get_property (dn,"compatible" ,NULL ); -if (!cp) -return -ENODEV ; +if (!cp) { +strcat (buf,"\n" ); +return strlen (buf); + }return sprintf (buf,"vio:T%sS%s\n" , vio_dev->type, cp); }
arch/powerpc/lib/checksum_64.S +2 -2
@@ -272,8 +272,8 @@ _GLOBAL(csum_partial_copy_generic) rldicl. r6,r3,64-1,64-2 /* r6 = (r3 & 0x3) >> 1 */ beq .Lcopy_aligned - li r7,4 - sub r6,r7,r6 + li r9,4 + sub r6,r9,r6 mtctr r6 1:
arch/sparc/kernel/entry.S +1 -1
@@ -1177,7 +1177,7 @@ sys_sigreturn: nop call syscall_trace - nop + mov 1, %o1 1: /* We don't want to muck with user registers like a
arch/sparc/kernel/ktlb.S +1 -2
@@ -25,11 +25,10 @@ kvmap_itlb: */ kvmap_itlb_4v: -kvmap_itlb_nonlinear: /* Catch kernel NULL pointer calls. */ sethi %hi(PAGE_SIZE), %g5 cmp %g4, %g5 - bleu,pn %xcc, kvmap_dtlb_longpath + blu,pn %xcc, kvmap_itlb_longpath nop KERN_TSB_LOOKUP_TL1(%g4, %g6, %g5, %g1, %g2, %g3, kvmap_itlb_load)
arch/sparc/kernel/syscalls.S +4 -4
@@ -147,7 +147,7 @@ linux_syscall_trace32: srl %i4, 0, %o4 srl %i1, 0, %o1 srl %i2, 0, %o2 - ba,pt %xcc, 2f + ba,pt %xcc, 5f srl %i3, 0, %o3 linux_syscall_trace:
@@ -177,13 +177,13 @@ linux_sparc_syscall32: srl %i1, 0, %o1 ! IEU0 Group ldx [%g6 + TI_FLAGS], %l0 ! Load - srl %i5, 0, %o5 ! IEU1 + srl %i3, 0, %o3 ! IEU0 srl %i2, 0, %o2 ! IEU0 Group andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT), %g0 bne,pn %icc, linux_syscall_trace32 ! CTI mov %i0, %l5 ! IEU1 - call %l7 ! CTI Group brk forced - srl %i3, 0, %o3 ! IEU0 +5: call %l7 ! CTI Group brk forced + srl %i5, 0, %o5 ! IEU1 ba,a,pt %xcc, 3f /* Linux native system calls enter here... */
arch/sparc/kernel/trampoline_64.S +0 -2
@@ -131,7 +131,6 @@ startup_continue: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 mov 15, %l7 BRANCH_IF_ANY_CHEETAH(g1,g5,2f)
@@ -224,7 +223,6 @@ niagara_lock_tlb: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 1: mov HV_FAST_MMU_MAP_PERM_ADDR, %o5
arch/sparc/lib/ksyms.c +0 -9
@@ -125,15 +125,6 @@ EXPORT_SYMBOL(___copy_from_user);EXPORT_SYMBOL (___copy_in_user);EXPORT_SYMBOL (__clear_user); -/* RW semaphores */ -EXPORT_SYMBOL (__down_read); -EXPORT_SYMBOL (__down_read_trylock); -EXPORT_SYMBOL (__down_write); -EXPORT_SYMBOL (__down_write_trylock); -EXPORT_SYMBOL (__up_read); -EXPORT_SYMBOL (__up_write); -EXPORT_SYMBOL (__downgrade_write); -/* Atomic counter implementation. */ EXPORT_SYMBOL (atomic_add);EXPORT_SYMBOL (atomic_add_ret);
arch/tile/include/asm/percpu.h +31 -3
@@ -15,9 +15,37 @@#ifndef _ASM_TILE_PERCPU_H#define _ASM_TILE_PERCPU_H -registerunsigned long __my_cpu_offset __asm__("tp" ); -#define __my_cpu_offset __my_cpu_offset -#define set_my_cpu_offset (tp) (__my_cpu_offset = (tp)) +registerunsigned long my_cpu_offset_reg asm("tp" ); + +#ifdef CONFIG_PREEMPT +/* +* For full preemption, we can't just use the register variable +* directly, since we need barrier() to hazard against it, causing the +* compiler to reload anything computed from a previous "tp" value. +* But we also don't want to use volatile asm, since we'd like the +* compiler to be able to cache the value across multiple percpu reads. +* So we use a fake stack read as a hazard against barrier(). +* The 'U' constraint is like 'm' but disallows postincrement. +*/ +static inline unsigned long __my_cpu_offset (void ) +{ +unsigned long tp; + registerunsigned long *sp asm("sp" ); + asm("move %0, tp" :"=r" (tp) :"U" (*sp)); +return tp; +} +#define __my_cpu_offset __my_cpu_offset() +#else +/* +* We don't need to hazard against barrier() since "tp" doesn't ever +* change with PREEMPT_NONE, and with PREEMPT_VOLUNTARY it only +* changes at function call points, at which we are already re-reading +* the value of "tp" due to "my_cpu_offset_reg" being a global variable. +*/ +#define __my_cpu_offset my_cpu_offset_reg +#endif + +#define set_my_cpu_offset (tp) (my_cpu_offset_reg = (tp))#include <asm-generic/percpu.h>
arch/unicore32/mm/init.c +3 -0
@@ -66,6 +66,9 @@ void show_mem(unsigned int filter)printk (KERN_DEFAULT "Mem-info:\n" );show_free_areas (filter); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ; +for_each_bank (i, mi) {struct membank *bank = &mi->bank[i];unsigned int pfn1, pfn2;
drivers/acpi/acpi_ipmi.c +14 -10
@@ -39,6 +39,7 @@#include <linux/ipmi.h> #include <linux/device.h> #include <linux/pnp.h> +#include <linux/spinlock.h> MODULE_AUTHOR ("Zhao Yakui" );MODULE_DESCRIPTION ("ACPI IPMI Opregion driver" );
@@ -57,7 +58,7 @@ struct acpi_ipmi_device {struct list_head head;/* the IPMI request message list */ struct list_head tx_msg_list; -struct mutex tx_msg_lock; +spinlock_t tx_msg_lock;acpi_handle handle;struct pnp_dev *pnp_dev;ipmi_user_t user_interface;
@@ -147,6 +148,7 @@ static void acpi_format_ipmi_msg(struct acpi_ipmi_msg *tx_msg,struct kernel_ipmi_msg *msg;struct acpi_ipmi_buffer *buffer;struct acpi_ipmi_device *device; +unsigned long flags; msg = &tx_msg->tx_message;/*
@@ -177,10 +179,10 @@ static void acpi_format_ipmi_msg(struct acpi_ipmi_msg *tx_msg,/* Get the msgid */ device = tx_msg->device; -mutex_lock (&device->tx_msg_lock); +spin_lock_irqsave (&device->tx_msg_lock, flags); device->curr_msgid++; tx_msg->tx_msgid = device->curr_msgid; -mutex_unlock (&device->tx_msg_lock); +spin_unlock_irqrestore (&device->tx_msg_lock, flags); } static void acpi_format_ipmi_response(struct acpi_ipmi_msg *msg,
@@ -242,6 +244,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)int msg_found =0 ;struct acpi_ipmi_msg *tx_msg;struct pnp_dev *pnp_dev = ipmi_device->pnp_dev; +unsigned long flags;if (msg->user != ipmi_device->user_interface) { dev_warn(&pnp_dev->dev, "Unexpected response is returned. "
@@ -250,7 +253,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)ipmi_free_recv_msg (msg);return ; } -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_for_each_entry (tx_msg, &ipmi_device->tx_msg_list, head) {if (msg->msgid == tx_msg->tx_msgid) { msg_found =1 ;
@@ -258,7 +261,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data) } } -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags);if (!msg_found) {dev_warn (&pnp_dev->dev,"Unexpected response (msg id %ld) is " "returned.\n" , msg->msgid);
@@ -378,6 +381,7 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,struct acpi_ipmi_device *ipmi_device = handler_context;int err, rem_time;acpi_status status; +unsigned long flags;/* * IPMI opregion message. * IPMI message is firstly written to the BMC and system software
@@ -395,9 +399,9 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,return AE_NO_MEMORY ;acpi_format_ipmi_msg (tx_msg, address, value); -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_add_tail (&tx_msg->head, &ipmi_device->tx_msg_list); -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags); err = ipmi_request_settime(ipmi_device->user_interface, &tx_msg->addr, tx_msg->tx_msgid,
@@ -413,9 +417,9 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address, status =AE_OK ; end_label: -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_del (&tx_msg->head); -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags);kfree (tx_msg);return status; }
@@ -457,7 +461,7 @@ static void acpi_add_ipmi_device(struct acpi_ipmi_device *ipmi_device)INIT_LIST_HEAD (&ipmi_device->head); -mutex_init (&ipmi_device->tx_msg_lock); +spin_lock_init (&ipmi_device->tx_msg_lock);INIT_LIST_HEAD (&ipmi_device->tx_msg_list);ipmi_install_space_handler (ipmi_device);
drivers/block/cciss.c +1 -0
@@ -1186,6 +1186,7 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,int err;u32 cp; +memset (&arg64,0 ,sizeof (arg64)); err =0 ; err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info,
drivers/block/cpqarray.c +1 -0
@@ -1195,6 +1195,7 @@ out_passthru:ida_pci_info_struct pciinfo;if (!arg)return -EINVAL ; +memset (&pciinfo,0 ,sizeof (pciinfo)); pciinfo.bus = host->pci_dev->bus->number; pciinfo.dev_fn = host->pci_dev->devfn; pciinfo.board_id = host->board_id;
drivers/dma/imx-dma.c +15 -16
@@ -373,17 +373,18 @@ static void dma_irq_handle_channel(struct imxdma_channel *imxdmac)struct imxdma_engine *imxdma = imxdmac->imxdma;int chno = imxdmac->channel;struct imxdma_desc *desc; +unsigned long flags; -spin_lock (&imxdma->lock); +spin_lock_irqsave (&imxdma->lock, flags);if (list_empty (&imxdmac->ld_active)) { -spin_unlock (&imxdma->lock); +spin_unlock_irqrestore (&imxdma->lock, flags); goto out; } desc =list_first_entry (&imxdmac->ld_active, struct imxdma_desc, node); -spin_unlock (&imxdma->lock); +spin_unlock_irqrestore (&imxdma->lock, flags);if (desc->sg) {u32 tmp;
@@ -455,7 +456,6 @@ static int imxdma_xfer_desc(struct imxdma_desc *d) {struct imxdma_channel *imxdmac =to_imxdma_chan (d->desc.chan);struct imxdma_engine *imxdma = imxdmac->imxdma; -unsigned long flags;int slot =-1 ;int i;
@@ -463,7 +463,6 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)switch (d->type) {case IMXDMA_DESC_INTERLEAVED :/* Try to get a free 2D slot */ -spin_lock_irqsave (&imxdma->lock, flags);for (i =0 ; i <IMX_DMA_2D_SLOTS ; i++) { if ((imxdma->slots_2d[i].count > 0) && ((imxdma->slots_2d[i].xsr != d->x) ||
@@ -473,10 +472,8 @@ static int imxdma_xfer_desc(struct imxdma_desc *d) slot = i;break ; } -if (slot <0 ) { -spin_unlock_irqrestore (&imxdma->lock, flags); +if (slot <0 )return -EBUSY ; - } imxdma->slots_2d[slot].xsr = d->x; imxdma->slots_2d[slot].ysr = d->y;
@@ -485,7 +482,6 @@ static int imxdma_xfer_desc(struct imxdma_desc *d) imxdmac->slot_2d = slot; imxdmac->enabled_2d = true; -spin_unlock_irqrestore (&imxdma->lock, flags);if (slot ==IMX_DMA_2D_SLOT_A ) { d->config_mem &= ~CCR_MSEL_B ;
@@ -561,18 +557,17 @@ static void imxdma_tasklet(unsigned long data)struct imxdma_channel *imxdmac = (void *)data;struct imxdma_engine *imxdma = imxdmac->imxdma;struct imxdma_desc *desc; +unsigned long flags; -spin_lock (&imxdma->lock); +spin_lock_irqsave (&imxdma->lock, flags);if (list_empty (&imxdmac->ld_active)) {/* Someone might have called terminate all */ - goto out; +spin_unlock_irqrestore (&imxdma->lock, flags); +return ; } desc = list_first_entry(&imxdmac->ld_active, struct imxdma_desc, node); -if (desc->desc.callback) - desc->desc.callback (desc->desc.callback_param); -/* If we are dealing with a cyclic descriptor keep it on ld_active * and dont mark the descripor as complete. * Only in non-cyclic cases it would be marked as complete
@@ -599,7 +594,11 @@ static void imxdma_tasklet(unsigned long data) __func__, imxdmac->channel); } out: -spin_unlock (&imxdma->lock); +spin_unlock_irqrestore (&imxdma->lock, flags); + +if (desc->desc.callback) + desc->desc.callback (desc->desc.callback_param); + } static int imxdma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
@@ -823,7 +822,7 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(kfree (imxdmac->sg_list); imxdmac->sg_list =kcalloc (periods +1 , -sizeof (struct scatterlist ),GFP_KERNEL ); +sizeof (struct scatterlist ),GFP_ATOMIC );if (!imxdmac->sg_list)return NULL ;
drivers/infiniband/ulp/srpt/ib_srpt.c +6 -8
@@ -1610,7 +1610,7 @@ static int srpt_build_tskmgmt_rsp(struct srpt_rdma_ch *ch,int resp_data_len;int resp_len; - resp_data_len = (rsp_code ==SRP_TSK_MGMT_SUCCESS ) ?0 :4 ; + resp_data_len =4 ; resp_len =sizeof (*srp_rsp) + resp_data_len; srp_rsp = ioctx->ioctx.buf;
@@ -1622,11 +1622,9 @@ static int srpt_build_tskmgmt_rsp(struct srpt_rdma_ch *ch, + atomic_xchg(&ch->req_lim_delta, 0)); srp_rsp->tag = tag; -if (rsp_code !=SRP_TSK_MGMT_SUCCESS ) { - srp_rsp->flags |=SRP_RSP_FLAG_RSPVALID ; - srp_rsp->resp_data_len =cpu_to_be32 (resp_data_len); - srp_rsp->data[3 ] = rsp_code; - } + srp_rsp->flags |=SRP_RSP_FLAG_RSPVALID ; + srp_rsp->resp_data_len =cpu_to_be32 (resp_data_len); + srp_rsp->data[3 ] = rsp_code;return resp_len; }
@@ -2373,6 +2371,8 @@ static void srpt_release_channel_work(struct work_struct *w)transport_deregister_session (ch->sess); ch->sess =NULL ; +ib_destroy_cm_id (ch->cm_id); +srpt_destroy_ch_ib (ch); srpt_free_ioctx_ring((struct srpt_ioctx **)ch->ioctx_ring,
@@ -2383,8 +2383,6 @@ static void srpt_release_channel_work(struct work_struct *w)list_del (&ch->list);spin_unlock_irq (&sdev->spinlock); -ib_destroy_cm_id (ch->cm_id); -if (ch->release_done)complete (ch->release_done);
drivers/net/bonding/bond_main.c +10 -3
@@ -1933,6 +1933,7 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)struct bonding *bond =netdev_priv (bond_dev);struct slave *slave, *oldcurrent;struct sockaddr addr; +int old_flags = bond_dev->flags;netdev_features_t old_features = bond_dev->features;/* slave is not a slave or master is not master of this slave */
@@ -2066,12 +2067,18 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)* already taken care of above when we detached the slave */ if (!USES_PRIMARY (bond->params.mode)) { -/* unset promiscuity level from slave */ -if (bond_dev->flags &IFF_PROMISC ) +/* unset promiscuity level from slave +* NOTE: The NETDEV_CHANGEADDR call above may change the value +* of the IFF_PROMISC flag in the bond_dev, but we need the +* value of that flag before that change, as that was the value +* when this slave was attached, so we cache at the start of the +* function and use it here. Same goes for ALLMULTI below +*/ +if (old_flags &IFF_PROMISC )dev_set_promiscuity (slave_dev,-1 );/* unset allmulti level from slave */ -if (bond_dev->flags &IFF_ALLMULTI ) +if (old_flags &IFF_ALLMULTI )dev_set_allmulti (slave_dev,-1 );/* flush master's mc_list from slave */
drivers/net/ethernet/freescale/gianfar.c +10 -1
@@ -394,7 +394,13 @@ static void gfar_init_mac(struct net_device *ndev)if (ndev->features &NETIF_F_IP_CSUM ) tctrl |=TCTRL_INIT_CSUM ; - tctrl |=TCTRL_TXSCHED_PRIO ; +if (priv->prio_sched_en) + tctrl |=TCTRL_TXSCHED_PRIO ; +else { + tctrl |=TCTRL_TXSCHED_WRRS ; +gfar_write (®s->tr03wt,DEFAULT_WRRS_WEIGHT ); +gfar_write (®s->tr47wt,DEFAULT_WRRS_WEIGHT ); + }gfar_write (®s->tctrl, tctrl);
@@ -1153,6 +1159,9 @@ static int gfar_probe(struct platform_device *ofdev) priv->rx_filer_enable =1 ;/* Enable most messages by default */ priv->msg_enable = (NETIF_MSG_IFUP <<1 ) -1 ; +/* use pritority h/w tx queue scheduling for single queue devices */ +if (priv->num_tx_queues ==1 ) + priv->prio_sched_en =1 ;/* Carrier starts down, phylib will bring it up */ netif_carrier_off (dev);
drivers/net/ethernet/freescale/gianfar.h +10 -1
@@ -301,8 +301,16 @@ extern const char gfar_driver_version[];#define TCTRL_TFCPAUSE 0x00000008#define TCTRL_TXSCHED_MASK 0x00000006#define TCTRL_TXSCHED_INIT 0x00000000 +/* priority scheduling */ #define TCTRL_TXSCHED_PRIO 0x00000002 +/* weighted round-robin scheduling (WRRS) */ #define TCTRL_TXSCHED_WRRS 0x00000004 +/* default WRRS weight and policy setting, +* tailored to the tr03wt and tr47wt registers: +* equal weight for all Tx Qs, measured in 64byte units +*/ +#define DEFAULT_WRRS_WEIGHT 0x18181818 +#define TCTRL_INIT_CSUM (TCTRL_TUCSEN | TCTRL_IPCSEN)#define IEVENT_INIT_CLEAR 0xffffffff
@@ -1098,7 +1106,8 @@ struct gfar_private { extended_hash:1, bd_stash_en:1, rx_filer_enable:1, - wol_en:1; /* Wake-on-LAN enabled */ + wol_en:1, /* Wake-on-LAN enabled */ + prio_sched_en:1; /* Enable priorty based Tx scheduling in Hw */unsigned short padding;/* PHY stuff */
drivers/net/ethernet/via/via-rhine.c +7 -2
@@ -32,7 +32,7 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#define DRV_NAME "via-rhine" -#define DRV_VERSION "1.5.0" +#define DRV_VERSION "1.5.1"#define DRV_RELDATE "2010-10-09"#include <linux/types.h>
@@ -1684,7 +1684,12 @@ static netdev_tx_t rhine_start_tx(struct sk_buff *skb,cpu_to_le32 (TXDESC | (skb->len >=ETH_ZLEN ? skb->len :ETH_ZLEN ));if (unlikely (vlan_tx_tag_present (skb))) { - rp->tx_ring[entry].tx_status =cpu_to_le32 ((vlan_tx_tag_get (skb)) <<16 ); +u16 vid_pcp =vlan_tx_tag_get (skb); + +/* drop CFI/DEI bit, register needs VID and PCP */ + vid_pcp = (vid_pcp &VLAN_VID_MASK ) | + ((vid_pcp &VLAN_PRIO_MASK ) >>1 ); + rp->tx_ring[entry].tx_status =cpu_to_le32 ((vid_pcp) <<16 );/* request tagging */ rp->tx_ring[entry].desc_length |=cpu_to_le32 (0x020000 ); }
drivers/net/ethernet/xilinx/ll_temac_main.c +6 -0
@@ -308,6 +308,12 @@ static int temac_dma_bd_init(struct net_device *ndev) lp->rx_bd_p + (sizeof(*lp->rx_bd_v) * (RX_BD_NUM - 1))); lp->dma_out (lp,TX_CURDESC_PTR , lp->tx_bd_p); +/* Init descriptor indexes */ + lp->tx_bd_ci =0 ; + lp->tx_bd_next =0 ; + lp->tx_bd_tail =0 ; + lp->rx_bd_ci =0 ; +return 0 ; out:
drivers/net/ppp/pptp.c +1 -1
@@ -281,7 +281,7 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)nf_reset (skb); skb->ip_summed =CHECKSUM_NONE ; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL );ip_send_check (iph);ip_local_out (skb);
drivers/net/usb/dm9601.c +1 -1
@@ -384,7 +384,7 @@ static void dm9601_set_multicast(struct net_device *net) rx_ctl |=0x02 ; }else if (net->flags &IFF_ALLMULTI ||netdev_mc_count (net) >DM_MAX_MCAST ) { - rx_ctl |=0x04 ; + rx_ctl |=0x08 ; }else if (!netdev_mc_empty (net)) {struct netdev_hw_addr *ha;
drivers/net/wireless/p54/p54usb.c +1 -0
@@ -83,6 +83,7 @@ static struct usb_device_id p54u_table[] = { {USB_DEVICE(0x06a9, 0x000e)}, /* Westell 802.11g USB (A90-211WG-01) */ {USB_DEVICE(0x06b9, 0x0121)}, /* Thomson SpeedTouch 121g */ {USB_DEVICE(0x0707, 0xee13)}, /* SMC 2862W-G version 2 */ + {USB_DEVICE(0x07aa, 0x0020)}, /* Corega WLUSB2GTST USB */ {USB_DEVICE(0x0803, 0x4310)}, /* Zoom 4410a */ {USB_DEVICE(0x083a, 0x4521)}, /* Siemens Gigaset USB Adapter 54 version 2 */ {USB_DEVICE(0x083a, 0x4531)}, /* T-Com Sinus 154 data II */
drivers/net/wireless/rtlwifi/wifi.h +1 -1
@@ -1638,7 +1638,7 @@ struct rtl_priv {that it points to the data allocated beyond this structure like: rtl_pci_priv or rtl_usb_priv */ -u8 priv[0 ]; +u8 priv[0 ]__aligned(sizeof(void *)) ; };#define rtl_priv (hw) (((struct rtl_priv *)(hw)->priv))
drivers/scsi/esp_scsi.c +8 -6
@@ -530,7 +530,7 @@ static int esp_need_to_nego_sync(struct esp_target_data *tp)static int esp_alloc_lun_tag (struct esp_cmd_entry *ent,struct esp_lun_data *lp) { -if (!ent->tag[0 ]) { +if (!ent->orig_tag[0 ]) {/* Non-tagged, slot already taken? */ if (lp->non_tagged_cmd)return -EBUSY ;
@@ -564,9 +564,9 @@ static int esp_alloc_lun_tag(struct esp_cmd_entry *ent,return -EBUSY ; } -BUG_ON (lp->tagged_cmds[ent->tag[1 ]]); +BUG_ON (lp->tagged_cmds[ent->orig_tag[1 ]]); - lp->tagged_cmds[ent->tag[1 ]] = ent; + lp->tagged_cmds[ent->orig_tag[1 ]] = ent; lp->num_tagged++;return 0 ;
@@ -575,9 +575,9 @@ static int esp_alloc_lun_tag(struct esp_cmd_entry *ent,static void esp_free_lun_tag (struct esp_cmd_entry *ent,struct esp_lun_data *lp) { -if (ent->tag[0 ]) { -BUG_ON (lp->tagged_cmds[ent->tag[1 ]] != ent); - lp->tagged_cmds[ent->tag[1 ]] =NULL ; +if (ent->orig_tag[0 ]) { +BUG_ON (lp->tagged_cmds[ent->orig_tag[1 ]] != ent); + lp->tagged_cmds[ent->orig_tag[1 ]] =NULL ; lp->num_tagged--; }else {BUG_ON (lp->non_tagged_cmd != ent);
@@ -667,6 +667,8 @@ static struct esp_cmd_entry *find_and_prep_issuable_command(struct esp *esp) ent->tag[0 ] =0 ; ent->tag[1 ] =0 ; } + ent->orig_tag[0 ] = ent->tag[0 ]; + ent->orig_tag[1 ] = ent->tag[1 ];if (esp_alloc_lun_tag (ent, lp) <0 )continue ;
drivers/scsi/esp_scsi.h +1 -0
@@ -271,6 +271,7 @@ struct esp_cmd_entry {#define ESP_CMD_FLAG_AUTOSENSE 0x04/* Doing automatic REQUEST_SENSE */ u8 tag[2 ]; +u8 orig_tag[2 ];u8 status;u8 message;
drivers/staging/comedi/drivers/ni_65xx.c +11 -15
@@ -411,29 +411,25 @@ static int ni_65xx_dio_insn_bits(struct comedi_device *dev,struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) { - unsigned base_bitfield_channel; -const unsigned max_ports_per_bitfield =5 ; + int base_bitfield_channel;unsigned read_bits =0 ; -unsigned j; +int last_port_offset =ni_65xx_port_by_channel (s->n_chan -1 ); +int port_offset; +if (insn->n !=2 )return -EINVAL ; base_bitfield_channel =CR_CHAN (insn->chanspec); -for (j =0 ; j < max_ports_per_bitfield; ++j) { -const unsigned port_offset = -ni_65xx_port_by_channel (base_bitfield_channel) + j; -const unsigned port = -sprivate (s)->base_port + port_offset; -unsigned base_port_channel; +for (port_offset =ni_65xx_port_by_channel (base_bitfield_channel); + port_offset <= last_port_offset; port_offset++) { +unsigned port =sprivate (s)->base_port + port_offset; +int base_port_channel = port_offset * ni_65xx_channels_per_port;unsigned port_mask, port_data, port_read_bits; -int bitshift; -if (port >=ni_65xx_total_num_ports (board (dev))) +int bitshift = base_port_channel - base_bitfield_channel; + +if (bitshift >=32 )break ; - base_port_channel = port_offset * ni_65xx_channels_per_port; port_mask = data[0 ]; port_data = data[1 ]; - bitshift = base_port_channel - base_bitfield_channel; -if (bitshift >=32 || bitshift <=-32 ) -break ;if (bitshift >0 ) { port_mask >>= bitshift; port_data >>= bitshift;
drivers/usb/serial/option.c +3 -0
@@ -81,6 +81,7 @@ static void option_instat_callback(struct urb *urb);#define HUAWEI_VENDOR_ID 0x12D1#define HUAWEI_PRODUCT_E173 0x140C +#define HUAWEI_PRODUCT_E1750 0x1406#define HUAWEI_PRODUCT_K4505 0x1464#define HUAWEI_PRODUCT_K3765 0x1465#define HUAWEI_PRODUCT_K4605 0x14C6
@@ -581,6 +582,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1c23, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t) &net_intf1_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1750, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t) &net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1441, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1442, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4505, 0xff, 0xff, 0xff),
fs/btrfs/relocation.c +7 -7
@@ -684,6 +684,7 @@ struct backref_node *build_backref_tree(struct reloc_control *rc,int cowonly;int ret;int err =0 ; +bool need_check = true; path1 =btrfs_alloc_path (); path2 =btrfs_alloc_path ();
@@ -906,6 +907,7 @@ again: cur->bytenr); lower = cur; + need_check = true;for (; level <BTRFS_MAX_LEVEL ; level++) {if (!path2->nodes[level]) { BUG_ON(btrfs_root_bytenr(&root->root_item) !=
@@ -949,14 +951,12 @@ again:/* * add the block to pending list if we -* need check its backrefs. only block -* at 'cur->level + 1' is added to the -* tail of pending list. this guarantees -* we check backrefs from lower level -* blocks to upper level blocks. +* need check its backrefs, we only do this once +* while walking up a tree as we will catch +* anything else later on. */ -if (!upper->checked && - level == cur->level +1 ) { +if (!upper->checked && need_check) { + need_check = false;list_add_tail (&edge->list[UPPER ], &list); }else
fs/ext4/namei.c +2 -1
@@ -2054,7 +2054,8 @@ int ext4_orphan_del(handle_t *handle, struct inode *inode)int err =0 ;/* ext4_handle_valid() assumes a valid handle_t pointer */ -if (handle && !ext4_handle_valid (handle)) +if (handle && !ext4_handle_valid (handle) && + !(EXT4_SB (inode->i_sb)->s_mount_state &EXT4_ORPHAN_FS ))return 0 ;mutex_lock (&EXT4_SB (inode->i_sb)->s_orphan_lock);
include/linux/mm.h +2 -1
@@ -866,7 +866,8 @@ extern void pagefault_out_of_memory(void);* Flags passed to show_mem() and show_free_areas() to suppress output in * various contexts. */ -#define SHOW_MEM_FILTER_NODES (0x0001u)/* filter disallowed nodes */ +#define SHOW_MEM_FILTER_NODES (0x0001u)/* disallowed nodes */ +#define SHOW_MEM_FILTER_PAGE_COUNT (0x0002u)/* page type count */ extern void show_free_areas (unsigned int flags);extern bool skip_free_areas_node (unsigned int flags,int nid);
include/net/ip.h +8 -4
@@ -266,9 +266,11 @@ int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)extern void __ip_select_ident (struct iphdr *iph,struct dst_entry *dst,int more); -static inline void ip_select_ident (struct iphdr *iph,struct dst_entry *dst,struct sock *sk) +static inline void ip_select_ident (struct sk_buff *skb,struct dst_entry *dst,struct sock *sk) { -if (iph->frag_off &htons (IP_DF )) { +struct iphdr *iph =ip_hdr (skb); + +if ((iph->frag_off &htons (IP_DF )) && !skb->local_df) {/* This is only to work around buggy Windows95/2000 * VJ compression implementations. If the ID field * does not change, they drop every other packet in
@@ -280,9 +282,11 @@ static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, str__ip_select_ident (iph, dst,0 ); } -static inline void ip_select_ident_more (struct iphdr *iph,struct dst_entry *dst,struct sock *sk,int more) +static inline void ip_select_ident_more (struct sk_buff *skb,struct dst_entry *dst,struct sock *sk,int more) { -if (iph->frag_off &htons (IP_DF )) { +struct iphdr *iph =ip_hdr (skb); + +if ((iph->frag_off &htons (IP_DF )) && !skb->local_df) {if (sk &&inet_sk (sk)->inet_daddr) { iph->id =htons (inet_sk (sk)->inet_id);inet_sk (sk)->inet_id +=1 + more;
include/net/ipip.h +1 -1
@@ -50,7 +50,7 @@ struct ip_tunnel_prl_entry {int pkt_len = skb->len -skb_transport_offset (skb); \ \ skb->ip_summed =CHECKSUM_NONE ; \ -ip_select_ident (iph, &rt->dst,NULL ); \ +ip_select_ident (skb, &rt->dst,NULL ); \ \ err =ip_local_out (skb); \if (likely (net_xmit_eval (err) ==0 )) { \
lib/show_mem.c +3 -0
@@ -18,6 +18,9 @@ void show_mem(unsigned int filter)printk ("Mem-Info:\n" );show_free_areas (filter); +if (filter &SHOW_MEM_FILTER_PAGE_COUNT ) +return ; +for_each_online_pgdat (pgdat) {unsigned long i, flags;
mm/page_alloc.c +7 -0
@@ -1885,6 +1885,13 @@ void warn_alloc_failed(gfp_t gfp_mask, int order, const char *fmt, ...)return ;/* +* Walking all memory to count page types is very expensive and should +* be inhibited in non-blockable contexts. +*/ +if (!(gfp_mask & __GFP_WAIT)) + filter |=SHOW_MEM_FILTER_PAGE_COUNT ; + +/* * This documents exceptions given to allocations in certain * contexts that are allowed to allocate outside current's set * of allowed nodes.
net/bluetooth/hci_event.c +5 -1
@@ -3375,7 +3375,11 @@ static inline void hci_le_ltk_request_evt(struct hci_dev *hdev, cp.handle =cpu_to_le16 (conn->handle);if (ltk->authenticated) - conn->sec_level =BT_SECURITY_HIGH ; + conn->pending_sec_level =BT_SECURITY_HIGH ; +else + conn->pending_sec_level =BT_SECURITY_MEDIUM ; + + conn->enc_key_size = ltk->enc_size;hci_send_cmd (hdev,HCI_OP_LE_LTK_REPLY ,sizeof (cp), &cp);
net/bridge/br_private.h +1 -0
@@ -501,6 +501,7 @@ extern struct net_bridge_port *br_get_port(struct net_bridge *br,extern void br_init_port (struct net_bridge_port *p);extern void br_become_designated_port (struct net_bridge_port *p); +extern void __br_set_forward_delay (struct net_bridge *br,unsigned long t);extern int br_set_forward_delay (struct net_bridge *br,unsigned long x);extern int br_set_hello_time (struct net_bridge *br,unsigned long x);extern int br_set_max_age (struct net_bridge *br,unsigned long x);
net/bridge/br_stp.c +16 -7
@@ -189,7 +189,7 @@ static void br_record_config_information(struct net_bridge_port *p, p->designated_age = jiffies - bpdu->message_age;mod_timer (&p->message_age_timer, jiffies - + (p->br->max_age - bpdu->message_age)); + + (bpdu->max_age - bpdu->message_age)); }/* called under bridge lock */
@@ -517,18 +517,27 @@ int br_set_max_age(struct net_bridge *br, unsigned long val) } +void __br_set_forward_delay (struct net_bridge *br,unsigned long t) +{ + br->bridge_forward_delay = t; +if (br_is_root_bridge (br)) + br->forward_delay = br->bridge_forward_delay; +} +int br_set_forward_delay (struct net_bridge *br,unsigned long val) {unsigned long t =clock_t_to_jiffies (val); +int err = -ERANGE ; +spin_lock_bh (&br->lock);if (br->stp_enabled !=BR_NO_STP && (t <BR_MIN_FORWARD_DELAY || t >BR_MAX_FORWARD_DELAY )) -return -ERANGE ; + goto unlock; -spin_lock_bh (&br->lock); - br->bridge_forward_delay = t; -if (br_is_root_bridge (br)) - br->forward_delay = br->bridge_forward_delay; +__br_set_forward_delay (br, t); + err =0 ; + +unlock:spin_unlock_bh (&br->lock); -return 0 ; +return err; }
net/bridge/br_stp_if.c +10 -2
@@ -129,6 +129,14 @@ static void br_stp_start(struct net_bridge *br)char *envp[] = {NULL }; r =call_usermodehelper (BR_STP_PROG , argv, envp,UMH_WAIT_PROC ); + +spin_lock_bh (&br->lock); + +if (br->bridge_forward_delay <BR_MIN_FORWARD_DELAY ) +__br_set_forward_delay (br,BR_MIN_FORWARD_DELAY ); +else if (br->bridge_forward_delay <BR_MAX_FORWARD_DELAY ) +__br_set_forward_delay (br,BR_MAX_FORWARD_DELAY ); +if (r ==0 ) { br->stp_enabled =BR_USER_STP ;br_debug (br,"userspace STP started\n" );
@@ -137,10 +145,10 @@ static void br_stp_start(struct net_bridge *br)br_debug (br,"using kernel STP\n" );/* To start timers on any ports left in blocking */ -spin_lock_bh (&br->lock);br_port_state_selection (br); -spin_unlock_bh (&br->lock); } + +spin_unlock_bh (&br->lock); }static void br_stp_stop (struct net_bridge *br)
net/caif/cfctrl.c +2 -1
@@ -288,9 +288,10 @@ int cfctrl_linkup_request(struct cflayer *layer, count =cfctrl_cancel_req (&cfctrl->serv.layer, user_layer); -if (count !=1 ) +if (count !=1 ) {pr_err ("Could not remove request (%d)" , count);return -ENODEV ; + } }return 0 ; }
net/core/flow_dissector.c +2 -2
@@ -133,8 +133,8 @@ ipv6:if (poff >=0 ) {__be32 *ports, _ports; - nhoff += poff; - ports =skb_header_pointer (skb, nhoff,sizeof (_ports), &_ports); + ports =skb_header_pointer (skb, nhoff + poff, +sizeof (_ports), &_ports);if (ports) flow->ports = *ports; }
net/core/netpoll.c +4 -5
@@ -920,15 +920,14 @@ EXPORT_SYMBOL_GPL(__netpoll_cleanup);void netpoll_cleanup (struct netpoll *np) { -if (!np->dev) -return ; -rtnl_lock (); +if (!np->dev) + goto out;__netpoll_cleanup (np); -rtnl_unlock (); -dev_put (np->dev); np->dev =NULL ; +out: +rtnl_unlock (); }EXPORT_SYMBOL (netpoll_cleanup);
net/ipv4/igmp.c +4 -4
@@ -343,7 +343,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size) pip->saddr = fl4.saddr; pip->protocol =IPPROTO_IGMP ; pip->tot_len =0 ;/* filled in later */ -ip_select_ident (pip, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); ((u8 *)&pip[1 ])[0 ] =IPOPT_RA ; ((u8 *)&pip[1 ])[1 ] =4 ; ((u8 *)&pip[1 ])[2 ] =0 ;
@@ -687,7 +687,7 @@ static int igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, iph->daddr = dst; iph->saddr = fl4.saddr; iph->protocol =IPPROTO_IGMP ; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); ((u8 *)&iph[1 ])[0 ] =IPOPT_RA ; ((u8 *)&iph[1 ])[1 ] =4 ; ((u8 *)&iph[1 ])[2 ] =0 ;
@@ -709,7 +709,7 @@ static void igmp_gq_timer_expire(unsigned long data) in_dev->mr_gq_running =0 ;igmpv3_send_report (in_dev,NULL ); -__in_dev_put (in_dev); +in_dev_put (in_dev); }static void igmp_ifc_timer_expire (unsigned long data)
@@ -721,7 +721,7 @@ static void igmp_ifc_timer_expire(unsigned long data) in_dev->mr_ifc_count--;igmp_ifc_start_timer (in_dev, IGMP_Unsolicited_Report_Interval); } -__in_dev_put (in_dev); +in_dev_put (in_dev); }static void igmp_ifc_event (struct in_device *in_dev)
net/ipv4/inetpeer.c +2 -2
@@ -32,8 +32,8 @@* At the moment of writing this notes identifier of IP packets is generated * to be unpredictable using this code only for packets subjected * (actually or potentially) to defragmentation. I.e. DF packets less than -* PMTU in size uses a constant ID and do not use this code (see -* ip_select_ident() in include/net/ip.h). +* PMTU in size when local fragmentation is disabled use a constant ID and do +* not use this code (see ip_select_ident() in include/net/ip.h). * * Route cache entries hold references to our nodes. * New cache entries get references via lookup by destination IP address in
net/ipv4/ip_output.c +4 -4
@@ -161,7 +161,7 @@ int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr); iph->saddr = saddr; iph->protocol = sk->sk_protocol; -ip_select_ident (iph, &rt->dst, sk); +ip_select_ident (skb, &rt->dst, sk);if (opt && opt->opt.optlen) { iph->ihl += opt->opt.optlen>>2 ;
@@ -403,7 +403,7 @@ packet_routed:ip_options_build (skb, &inet_opt->opt, inet->inet_daddr, rt,0 ); } -ip_select_ident_more (iph, &rt->dst, sk, +ip_select_ident_more (skb, &rt->dst, sk, (skb_shinfo (skb)->gso_segs ?:1 ) -1 ); skb->priority = sk->sk_priority;
@@ -1342,12 +1342,12 @@ struct sk_buff *__ip_make_skb(struct sock *sk,else ttl =ip_select_ttl (inet, &rt->dst); - iph = (struct iphdr *)skb->data; + iph =ip_hdr (skb); iph->version =4 ; iph->ihl =5 ; iph->tos = inet->tos; iph->frag_off = df; -ip_select_ident (iph, &rt->dst, sk); +ip_select_ident (skb, &rt->dst, sk); iph->ttl = ttl; iph->protocol = sk->sk_protocol;ip_copy_addrs (iph, fl4);
net/ipv4/ipmr.c +1 -1
@@ -1573,7 +1573,7 @@ static void ip_encap(struct sk_buff *skb, __be32 saddr, __be32 daddr) iph->protocol =IPPROTO_IPIP ; iph->ihl =5 ; iph->tot_len =htons (skb->len); -ip_select_ident (iph,skb_dst (skb),NULL ); +ip_select_ident (skb,skb_dst (skb),NULL );ip_send_check (iph);memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));
net/ipv4/raw.c +1 -1
@@ -384,7 +384,7 @@ static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, iph->check =0 ; iph->tot_len =htons (length);if (!iph->id) -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); iph->check =ip_fast_csum ((unsigned char *)iph, iph->ihl); }
net/ipv4/xfrm4_mode_tunnel.c +1 -1
@@ -54,7 +54,7 @@ static int xfrm4_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) top_iph->frag_off = (flags &XFRM_STATE_NOPMTUDISC ) ?0 : (XFRM_MODE_SKB_CB (skb)->frag_off &htons (IP_DF )); -ip_select_ident (top_iph, dst->child,NULL ); +ip_select_ident (skb, dst->child,NULL ); top_iph->ttl =ip4_dst_hoplimit (dst->child);
net/ipv6/ip6_output.c +22 -31
82 lines not on this page · raw message
net/ipv6/mcast.c +2 -2
@@ -2149,7 +2149,7 @@ static void mld_gq_timer_expire(unsigned long data) idev->mc_gq_running =0 ;mld_send_report (idev,NULL ); -__in6_dev_put (idev); +in6_dev_put (idev); }static void mld_ifc_timer_expire (unsigned long data)
@@ -2162,7 +2162,7 @@ static void mld_ifc_timer_expire(unsigned long data)if (idev->mc_ifc_count)mld_ifc_start_timer (idev, idev->mc_maxdelay); } -__in6_dev_put (idev); +in6_dev_put (idev); }static void mld_ifc_event (struct inet6_dev *idev)
net/netfilter/ipvs/ip_vs_xmit.c +1 -1
@@ -853,7 +853,7 @@ ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp, iph->daddr = cp->daddr.ip; iph->saddr = saddr; iph->ttl = old_iph->ttl; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL );/* Another hack: avoid icmp_send in ip_fragment */ skb->local_df =1 ;
net/sctp/ipv6.c +13 -29
85 lines not on this page · raw message
net/sctp/socket.c +3 -0
@@ -814,6 +814,9 @@ static int sctp_send_asconf_del_ip(struct sock *sk, goto skip_mkasconf; } +if (laddr ==NULL ) +return -EINVAL ; +/* We do not need RCU protection throughout this loop * because this is done under a socket lock from the * setsockopt call.
sound/soc/codecs/88pm860x-codec.c +3 -0
@@ -351,6 +351,9 @@ static int snd_soc_put_volsw_2r_st(struct snd_kcontrol *kcontrol, val = ucontrol->value.integer.value[0 ]; val2 = ucontrol->value.integer.value[1 ]; +if (val >=ARRAY_SIZE (st_table) || val2 >=ARRAY_SIZE (st_table)) +return -EINVAL ; + err =snd_soc_update_bits (codec, reg,0x3f , st_table[val].m);if (err <0 )return err;
sound/soc/codecs/max98095.c +2 -2
@@ -1860,7 +1860,7 @@ static int max98095_put_eq_enum(struct snd_kcontrol *kcontrol,struct max98095_pdata *pdata = max98095->pdata;int channel =max98095_get_eq_channel (kcontrol->id.name);struct max98095_cdata *cdata; -int sel = ucontrol->value.integer.value[0 ]; +unsigned int sel = ucontrol->value.integer.value[0 ];struct max98095_eq_cfg *coef_set;int fs, best, best_val, i;int regmask, regsave;
@@ -2013,7 +2013,7 @@ static int max98095_put_bq_enum(struct snd_kcontrol *kcontrol,struct max98095_pdata *pdata = max98095->pdata;int channel =max98095_get_bq_channel (codec, kcontrol->id.name);struct max98095_cdata *cdata; -int sel = ucontrol->value.integer.value[0 ]; +unsigned int sel = ucontrol->value.integer.value[0 ];struct max98095_biquad_cfg *coef_set;int fs, best, best_val, i;int regmask, regsave;