Linux 3.2.9
Greg KH
maintainerI'm announcing the release of the 3.2.9 kernel.
All users of the 3.2 kernel series must upgrade.
The updated 3.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.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/common/pl330.c | 3 arch/arm/include/asm/assembler.h | 5 arch/arm/mach-at91/at91rm9200_devices.c | 2 arch/arm/mach-at91/at91sam9260_devices.c | 2 arch/arm/mach-at91/at91sam9261_devices.c | 2 arch/arm/mach-at91/at91sam9263_devices.c | 2 arch/arm/mach-omap2/vp.c | 5 arch/arm/mm/cache-v7.S | 6 arch/powerpc/kernel/perf_event.c | 8 arch/s390/kernel/time.c | 7 arch/x86/kernel/cpu/intel_cacheinfo.c | 44 +++- drivers/base/regmap/regcache.c | 4 drivers/cdrom/cdrom.c | 8 drivers/gpu/drm/radeon/r100.c | 4 drivers/gpu/drm/radeon/rs600.c | 4 drivers/hwmon/ads1015.c | 3 drivers/hwmon/f75375s.c | 5 drivers/hwmon/max6639.c | 22 +- drivers/infiniband/ulp/ipoib/ipoib.h | 6 drivers/infiniband/ulp/ipoib/ipoib_main.c | 55 +---- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 9 drivers/media/rc/imon.c | 26 ++ drivers/media/video/hdpvr/hdpvr-video.c | 3 drivers/mmc/card/block.c | 82 ++++--- drivers/net/can/sja1000/sja1000.c | 13 + drivers/net/ethernet/3com/3c59x.c | 2 drivers/net/ethernet/jme.c | 10 drivers/net/ethernet/jme.h | 2 drivers/net/ethernet/ti/davinci_emac.c | 6 drivers/net/ethernet/via/via-velocity.c | 3 drivers/net/usb/ipheth.c | 5 drivers/net/veth.c | 4 drivers/net/wireless/ath/ath9k/rc.c | 2 drivers/pci/probe.c | 5 drivers/scsi/scsi_pm.c | 16 + drivers/scsi/scsi_priv.h | 1 drivers/scsi/scsi_scan.c | 4 drivers/target/target_core_alua.c | 8 drivers/target/target_core_cdb.c | 28 +- drivers/target/target_core_device.c | 4 drivers/target/target_core_pr.c | 38 +-- drivers/target/target_core_pscsi.c | 4 drivers/target/target_core_transport.c | 45 +++- drivers/usb/core/hcd-pci.c | 5 drivers/usb/core/hcd.c | 6 drivers/usb/core/hub.c | 30 +- drivers/usb/host/pci-quirks.c | 11 + drivers/usb/host/xhci-hub.c | 2 drivers/usb/host/xhci-mem.c | 32 ++- drivers/usb/host/xhci.c | 5 drivers/usb/serial/cp210x.c | 2 drivers/usb/serial/option.c | 143 +------------ drivers/usb/serial/ti_usb_3410_5052.c | 6 drivers/usb/serial/ti_usb_3410_5052.h | 4 drivers/usb/storage/usb.c | 89 ++------ drivers/usb/storage/usb.h | 7 drivers/video/omap2/dss/dpi.c | 5 fs/ecryptfs/inode.c | 2 fs/eventpoll.c | 264 ++++++++++++++++++++++--- fs/namei.c | 4 fs/nfs/nfs4proc.c | 23 +- fs/nfs/nfs4state.c | 2 fs/nfs/nfs4xdr.c | 5 fs/signalfd.c | 15 + include/asm-generic/poll.h | 2 include/linux/eventpoll.h | 1 include/linux/fs.h | 1 include/linux/nfs_xdr.h | 2 include/linux/signalfd.h | 5 include/linux/usb/ch11.h | 10 include/net/flow.h | 10 include/net/route.h | 4 include/net/sch_generic.h | 9 include/target/target_core_base.h | 1 include/target/target_core_transport.h | 4 kernel/fork.c | 5 kernel/irq/autoprobe.c | 4 kernel/irq/chip.c | 42 +++ kernel/irq/internals.h | 2 kernel/irq/manage.c | 2 mm/nommu.c | 7 net/core/dev.c | 10 net/core/netpoll.c | 2 net/ipv4/arp.c | 3 net/ipv4/ip_options.c | 2 net/ipv4/tcp_input.c | 45 ++-- net/ipv4/tcp_ipv4.c | 5 net/mac80211/main.c | 4 net/netfilter/ipvs/ip_vs_core.c | 2 net/sched/sch_choke.c | 3 net/sched/sch_netem.c | 7 net/sched/sch_sfb.c | 3 scripts/package/builddeb | 12 - security/tomoyo/.gitignore | 2 sound/pci/hda/patch_conexant.c | 11 - sound/pci/hda/patch_realtek.c | 19 + sound/soc/codecs/wm8962.c | 2 98 files changed, 891 insertions(+), 533 deletions(-)
Alan Stern (2):
usb-storage: fix freezing of the scanning thread
scsi_pm: Fix bug in the SCSI power management handler
Alex Deucher (1):
drm/radeon/kms: fix MSI re-arm on rv370+
Andreas Herrmann (1):
x86/amd: Fix L1i and L2 cache sharing information for AMD family 15h processors
Andrew Lunn (1):
USB: Serial: ti_usb_3410_5052: Add Abbot Diabetes Care cable id
Andy Grover (1):
target: Allow control CDBs with data > 1 page
Anton Blanchard (1):
powerpc/perf: power_pmu_start restores incorrect values, breaking frequency events
Ben Hutchings (1):
builddeb: Don't create files in /tmp with predictable names
Bruno Thomsen (1):
USB: Added Kamstrup VID/PIDs to cp210x serial driver.
Chris D Schimp (2):
hwmon: (max6639) Fix FAN_FROM_REG calculation
hwmon: (max6639) Fix PPR register initialization to set both channels
Christian Riesch (1):
davinci_emac: Do not free all rx dma descriptors during init
Dan Carpenter (1):
cdrom: use copy_to_user() without the underscores
David Howells (1):
NOMMU: Lock i_mmap_mutex for access to the VMA prio list
David Lv (1):
via-velocity: S3 resume fix.
David S. Miller (1):
net: Make qdisc_skb_cb upper size bound explicit.
Elric Fu (1):
USB: Set hub depth after USB3 hub reset
Eric Dumazet (3):
3c59x: shorten timer period for slave devices
netpoll: netpoll_poll_dev() should access dev->flags
gro: more generic L2 header check
Greg Kroah-Hartman (2):
Security: tomoyo: add .gitignore file
Linux 3.2.9
Guenter Roeck (1):
hwmon: (ads1015) Fix file leak in probe function
Guo-Fu Tseng (1):
jme: Fix FIFO flush issue
Hagen Paul Pfeifer (2):
net_sched: Bug in netem reordering
veth: Enforce minimum size of VETH_INFO_PEER
Huajun Li (1):
scsi_scan: Fix 'Poison overwritten' warning caused by using freed 'shost'
Janne Grunau (1):
hdpvr: fix race conditon during start of streaming
Jarod Wilson (1):
imon: don't wedge hardware after early callbacks
Jason Baron (1):
epoll: limit paths
Javi Merino (1):
ARM: 7326/2: PL330: fix null pointer dereference in pl330_chan_ctrl()
Johan Rudholm (1):
mmc: core: check for zero length ioctl data
Julian Anastasov (1):
ipv4: reset flowi parameters on route connect
Lars-Peter Clausen (1):
regmap: Fix cache defaults initialization from raw cache defaults
Li Wei (1):
ipv4: Fix wrong order of ip_rt_get_source() and update iph->daddr.
Mark Brown (1):
ASoC: wm8962: Fix sidetone enumeration texts
Martin Schwidefsky (1):
S390: correct ktime to tod clock comparator conversion
Miklos Szeredi (1):
vfs: fix d_inode_lookup() dentry ref leak
Mohammed Shafi Shajakhan (1):
mac80211: Fix a rwlock bad magic bug
Neal Cardwell (3):
tcp: allow tcp_sacktag_one() to tag ranges not aligned with skbs
tcp: fix range tcp_shifted_skb() passes to tcp_sacktag_one()
tcp: fix tcp_shifted_skb() adjustment of lost_cnt_hint for FACK
Nicolas Ferre (1):
ARM: at91: USB AT91 gadget registration for module
Nikolaus Schulz (1):
hwmon: (f75375s) Fix register write order when setting fans to full speed
Oleg Nesterov (2):
epoll: introduce POLLFREE to flush ->signalfd_wqh before kfree()
epoll: ep_unregister_pollwait() can use the freed pwq->wheadOliver Hartkopp (1):
can: sja1000: fix isr hang when hw is unplugged under load
Pavel Roskin (1):
ath9k: stop on rates with idx -1 in ath9k rate control's .tx_status
Rabin Vincent (1):
ARM: 7325/1: fix v7 boot with lockdep enabled
Roland Dreier (1):
IPoIB: Stop lying about hard_header_len and use skb->cb to stash LL addresses
Rui li (1):
USB: option: cleanup zte 3g-dongle's pid in option.c
Russell King (2):
ARM: omap: fix oops in drivers/video/omap2/dss/dpi.c
ARM: omap: fix oops in arch/arm/mach-omap2/vp.c when pmic is not found
Sarah Sharp (5):
USB: Remove duplicate USB 3.0 hub feature #defines.
USB: Fix handoff when BIOS disables host PCI device.
xhci: Fix oops caused by more USB2 ports than USB3 ports.
xhci: Fix encoding for HS bulk/control NAK rate.
USB: Don't fail USB3 probe on missing legacy PCI IRQ.
Shawn Lu (1):
tcp_v4_send_reset: binding oif to iif in no sock case
Simon Horman (1):
ipvs: fix matching of fwmark templates during scheduling
Stephen Boyd (1):
ARM: 7321/1: cache-v7: Disable preemption when reading CCSIDR
Takashi Iwai (3):
ALSA: hda - Fix redundant jack creations for cx5051
ALSA: hda/realtek - Fix overflow of vol/sw check bitmap
ALSA: hda/realtek - Fix surround output regression on Acer Aspire 5935
Thomas Gleixner (2):
genirq: Unmask oneshot irqs when thread was not woken
genirq: Handle pending irqs in irq_startup()
Thomas Graf (1):
net: Don't proxy arp respond if iif == rt->dst.dev if private VLAN is disabled
Tim Gardner (1):
ipheth: Add iPhone 4S
Trond Myklebust (2):
NFSv4: Fix an Oops in the NFSv4 getacl code
NFSv4: Ensure we throw out bad delegation stateids on NFS4ERR_BAD_STATEID
Tyler Hicks (1):
eCryptfs: Copy up lower inode attrs after setting lower xattr
Weston Andros Adamson (1):
NFSv4: fix server_scope memory leak
Yinghai Lu (1):
PCI: workaround hard-wired bus number V2
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/common/pl330.c +2 -1
@@ -1496,12 +1496,13 @@ int pl330_chan_ctrl(void *ch_id, enum pl330_chan_op op)struct pl330_thread *thrd = ch_id;struct pl330_dmac *pl330;unsigned long flags; -int ret =0 , active = thrd->req_running; +int ret =0 , active;if (!thrd || thrd->free || thrd->dmac->state ==DYING )return -EINVAL ; pl330 = thrd->dmac; + active = thrd->req_running;spin_lock_irqsave (&pl330->lock, flags);
arch/arm/include/asm/assembler.h +5 -0
@@ -137,6 +137,11 @@ disable_irq .endm + .macro save_and_disable_irqs_notrace, oldcpsr + mrs \oldcpsr, cpsr + disable_irq_notrace + .endm +/* * Restore interrupt state previously stored in a register. We don't * guarantee that this will preserve the flags.
arch/arm/mach-at91/at91rm9200_devices.c +1 -1
@@ -83,7 +83,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {}* USB Device (Gadget) * -------------------------------------------------------------------- */ -#ifdef CONFIG_USB_AT91 +#if defined(CONFIG_USB_AT91 ) || defined(CONFIG_USB_AT91_MODULE )static struct at91_udc_data udc_data; static struct resource udc_resources[] = {
arch/arm/mach-at91/at91sam9260_devices.c +1 -1
@@ -84,7 +84,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {}* USB Device (Gadget) * -------------------------------------------------------------------- */ -#ifdef CONFIG_USB_AT91 +#if defined(CONFIG_USB_AT91 ) || defined(CONFIG_USB_AT91_MODULE )static struct at91_udc_data udc_data; static struct resource udc_resources[] = {
arch/arm/mach-at91/at91sam9261_devices.c +1 -1
@@ -87,7 +87,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {}* USB Device (Gadget) * -------------------------------------------------------------------- */ -#ifdef CONFIG_USB_AT91 +#if defined(CONFIG_USB_AT91 ) || defined(CONFIG_USB_AT91_MODULE )static struct at91_udc_data udc_data; static struct resource udc_resources[] = {
arch/arm/mach-at91/at91sam9263_devices.c +1 -1
@@ -92,7 +92,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {}* USB Device (Gadget) * -------------------------------------------------------------------- */ -#ifdef CONFIG_USB_AT91 +#if defined(CONFIG_USB_AT91 ) || defined(CONFIG_USB_AT91_MODULE )static struct at91_udc_data udc_data; static struct resource udc_resources[] = {
arch/arm/mach-omap2/vp.c +5 -0
@@ -41,6 +41,11 @@ void __init omap_vp_init(struct voltagedomain *voltdm)u32 val, sys_clk_rate, timeout, waittime;u32 vddmin, vddmax, vstepmin, vstepmax; +if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { +pr_err ("%s: No PMIC info for vdd_%s\n" , __func__, voltdm->name); +return ; + } +if (!voltdm->read || !voltdm->write) {pr_err ("%s: No read/write API for accessing vdd_%s regs\n" , __func__, voltdm->name);
arch/arm/mm/cache-v7.S +6 -0
@@ -54,9 +54,15 @@ loop1: and r1, r1, #7 @ mask of the bits for current cache only cmp r1, #2 @ see what cache we have at this level blt skip @ skip if no cache, or just i-cache +#ifdef CONFIG_PREEMPT + save_and_disable_irqs_notrace r9 @ make cssr&csidr read atomic +#endif mcr p15, 2, r10, c0, c0, 0 @ select current cache level in cssr isb @ isb to sych the new cssr&csidr mrc p15, 1, r1, c0, c0, 0 @ read the new csidr +#ifdef CONFIG_PREEMPT + restore_irqs_notrace r9 +#endif and r2, r1, #7 @ extract the length of the cache lines add r2, r2, #4 @ add 4 (line length offset) ldr r4, =0x3ff
arch/powerpc/kernel/perf_event.c +7 -1
@@ -865,6 +865,7 @@ static void power_pmu_start(struct perf_event *event, int ef_flags) {unsigned long flags;s64 left; +unsigned long val;if (!event->hw.idx || !event->hw.sample_period)return ;
@@ -880,7 +881,12 @@ static void power_pmu_start(struct perf_event *event, int ef_flags) event->hw.state =0 ; left =local64_read (&event->hw.period_left); -write_pmc (event->hw.idx, left); + + val =0 ; +if (left <0x80000000L ) + val =0x80000000L - left; + +write_pmc (event->hw.idx, val);perf_event_update_userpage (event);perf_pmu_enable (event->pmu);
arch/s390/kernel/time.c +5 -2
@@ -113,11 +113,14 @@ static void fixup_clock_comparator(unsigned long long delta)static int s390_next_ktime (ktime_t expires,struct clock_event_device *evt) { +struct timespec ts;u64 nsecs; - nsecs =ktime_to_ns (ktime_sub (expires,ktime_get_monotonic_offset ())); + ts.tv_sec = ts.tv_nsec =0 ; +monotonic_to_bootbased (&ts); + nsecs =ktime_to_ns (ktime_add (timespec_to_ktime (ts), expires));do_div (nsecs,125 ); - S390_lowcore.clock_comparator =TOD_UNIX_EPOCH + (nsecs <<9 ); + S390_lowcore.clock_comparator = sched_clock_base_cc + (nsecs <<9 );set_clock_comparator (S390_lowcore.clock_comparator);return 0 ; }
arch/x86/kernel/cpu/intel_cacheinfo.c +36 -8
66 lines not on this page · raw message
drivers/base/regmap/regcache.c +2 -2
@@ -54,7 +54,7 @@ static int regcache_hw_init(struct regmap *map)for (count =0 , i =0 ; i < map->num_reg_defaults_raw; i++) { val =regcache_get_val (map->reg_defaults_raw, i, map->cache_word_size); -if (!val) +if (regmap_volatile (map, i))continue ; count++; }
@@ -69,7 +69,7 @@ static int regcache_hw_init(struct regmap *map)for (i =0 , j =0 ; i < map->num_reg_defaults_raw; i++) { val =regcache_get_val (map->reg_defaults_raw, i, map->cache_word_size); -if (!val) +if (regmap_volatile (map, i))continue ; map->reg_defaults[j].reg = i; map->reg_defaults[j].def = val;
drivers/cdrom/cdrom.c +1 -7
@@ -2120,11 +2120,6 @@ static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf,if (!nr)return -ENOMEM ; -if (!access_ok (VERIFY_WRITE , ubuf, nframes *CD_FRAMESIZE_RAW )) { - ret = -EFAULT ; - goto out; - } - cgc.data_direction =CGC_DATA_READ ;while (nframes >0 ) {if (nr > nframes)
@@ -2133,7 +2128,7 @@ static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf, ret =cdrom_read_block (cdi, &cgc, lba, nr,1 ,CD_FRAMESIZE_RAW );if (ret)break ; -if (__copy_to_user (ubuf, cgc.buffer,CD_FRAMESIZE_RAW * nr)) { +if (copy_to_user (ubuf, cgc.buffer,CD_FRAMESIZE_RAW * nr)) { ret = -EFAULT ;break ; }
@@ -2141,7 +2136,6 @@ static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf, nframes -= nr; lba += nr; } -out:kfree (cgc.buffer);return ret; }
drivers/gpu/drm/radeon/r100.c +1 -3
@@ -789,9 +789,7 @@ int r100_irq_process(struct radeon_device *rdev)WREG32 (RADEON_AIC_CNTL , msi_rearm |RS400_MSI_REARM );break ;default : - msi_rearm =RREG32 (RADEON_MSI_REARM_EN ) & ~RV370_MSI_REARM_EN ; -WREG32 (RADEON_MSI_REARM_EN , msi_rearm); -WREG32 (RADEON_MSI_REARM_EN , msi_rearm |RV370_MSI_REARM_EN ); +WREG32 (RADEON_MSI_REARM_EN ,RV370_MSI_REARM_EN );break ; } }
drivers/gpu/drm/radeon/rs600.c +1 -3
@@ -693,9 +693,7 @@ int rs600_irq_process(struct radeon_device *rdev)WREG32 (RADEON_BUS_CNTL , msi_rearm |RS600_MSI_REARM );break ;default : - msi_rearm =RREG32 (RADEON_MSI_REARM_EN ) & ~RV370_MSI_REARM_EN ; -WREG32 (RADEON_MSI_REARM_EN , msi_rearm); -WREG32 (RADEON_MSI_REARM_EN , msi_rearm |RV370_MSI_REARM_EN ); +WREG32 (RADEON_MSI_REARM_EN ,RV370_MSI_REARM_EN );break ; } }
drivers/hwmon/ads1015.c +1 -2
@@ -271,7 +271,7 @@ static int ads1015_probe(struct i2c_client *client,continue ; err =device_create_file (&client->dev, &ads1015_in[k].dev_attr);if (err) - goto exit_free; + goto exit_remove; } data->hwmon_dev =hwmon_device_register (&client->dev);
@@ -285,7 +285,6 @@ static int ads1015_probe(struct i2c_client *client, exit_remove:for (k =0 ; k <ADS1015_CHANNELS ; ++k)device_remove_file (&client->dev, &ads1015_in[k].dev_attr); -exit_free:kfree (data); exit:return err;
drivers/hwmon/f75375s.c +3 -2
@@ -304,8 +304,6 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)case 0 :/* Full speed */ fanmode |= (3 <<FAN_CTRL_MODE (nr)); data->pwm[nr] =255 ; -f75375_write8 (client,F75375_REG_FAN_PWM_DUTY (nr), - data->pwm[nr]);break ;case 1 :/* PWM */ fanmode |= (3 <<FAN_CTRL_MODE (nr));
@@ -318,6 +316,9 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val) }f75375_write8 (client,F75375_REG_FAN_TIMER , fanmode); data->pwm_enable[nr] = val; +if (val ==0 ) +f75375_write8 (client,F75375_REG_FAN_PWM_DUTY (nr), + data->pwm[nr]);return 0 ; }
drivers/hwmon/max6639.c +12 -10
@@ -72,8 +72,8 @@ static unsigned short normal_i2c[] = { 0x2c, 0x2e, 0x2f, I2C_CLIENT_END };static const int rpm_ranges[] = {2000 ,4000 ,8000 ,16000 }; -#define FAN_FROM_REG (val, div, rpm_range) ((val) == 0 ? -1 : \ - (val) == 255 ? 0 : (rpm_ranges[rpm_range] * 30) / ((div + 1) * (val))) +#define FAN_FROM_REG (val, rpm_range) ((val) == 0 || (val) == 255 ? \ + 0 : (rpm_ranges[rpm_range] * 30) / (val))#define TEMP_LIMIT_TO_REG (val) SENSORS_LIMIT((val) / 1000, 0, 255)/*
@@ -333,7 +333,7 @@ static ssize_t show_fan_input(struct device *dev,return PTR_ERR (data);return sprintf (buf,"%d\n" ,FAN_FROM_REG (data->fan[attr->index], - data->ppr, data->rpm_range)); + data->rpm_range)); } static ssize_t show_alarm(struct device *dev,
@@ -429,9 +429,9 @@ static int max6639_init_client(struct i2c_client *client)struct max6639_data *data =i2c_get_clientdata (client);struct max6639_platform_data *max6639_info = client->dev.platform_data; -int i =0 ; +int i;int rpm_range =1 ;/* default: 4000 RPM */ -int err =0 ; +int err;/* Reset chip to default values, see below for GCONFIG setup */ err = i2c_smbus_write_byte_data(client, MAX6639_REG_GCONFIG,
@@ -446,11 +446,6 @@ static int max6639_init_client(struct i2c_client *client)else data->ppr =2 ; data->ppr -=1 ; - err =i2c_smbus_write_byte_data (client, -MAX6639_REG_FAN_PPR (i), - data->ppr <<5 ); -if (err) - goto exit;if (max6639_info) rpm_range =rpm_range_to_reg (max6639_info->rpm_range);
@@ -458,6 +453,13 @@ static int max6639_init_client(struct i2c_client *client)for (i =0 ; i <2 ; i++) { +/* Set Fan pulse per revolution */ + err =i2c_smbus_write_byte_data (client, +MAX6639_REG_FAN_PPR (i), + data->ppr <<6 ); +if (err) + goto exit; +/* Fans config PWM, RPM */ err = i2c_smbus_write_byte_data(client, MAX6639_REG_FAN_CONFIG1(i),
drivers/infiniband/ulp/ipoib/ipoib.h +4 -2
@@ -44,6 +44,7 @@#include <linux/mutex.h> #include <net/neighbour.h> +#include <net/sch_generic.h> #include <linux/atomic.h>
@@ -117,8 +118,9 @@ struct ipoib_header {u16 reserved; }; -struct ipoib_pseudoheader { -u8 hwaddr[INFINIBAND_ALEN ]; +struct ipoib_cb { +struct qdisc_skb_cb qdisc_cb; +u8 hwaddr[INFINIBAND_ALEN ]; };/* Used for all multicast joins (broadcast, IPv4 mcast and IPv6 mcast) */
drivers/infiniband/ulp/ipoib/ipoib_main.c +19 -36
122 lines not on this page · raw message
drivers/infiniband/ulp/ipoib/ipoib_multicast.c +1 -8
@@ -262,21 +262,14 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,netif_tx_lock_bh (dev);while (!skb_queue_empty (&mcast->pkt_queue)) {struct sk_buff *skb =skb_dequeue (&mcast->pkt_queue); -struct dst_entry *dst =skb_dst (skb); -struct neighbour *n =NULL ;netif_tx_unlock_bh (dev); skb->dev = dev; -if (dst) - n =dst_get_neighbour_raw (dst); -if (!dst || !n) { -/* put pseudoheader back on for next time */ -skb_push (skb,sizeof (struct ipoib_pseudoheader )); - }if (dev_queue_xmit (skb))ipoib_warn (priv,"dev_queue_xmit failed to requeue packet\n" ); +netif_tx_lock_bh (dev); }netif_tx_unlock_bh (dev);
drivers/media/rc/imon.c +22 -4
@@ -47,7 +47,7 @@#define MOD_AUTHOR "Jarod Wilson <[email protected]>"#define MOD_DESC "Driver for SoundGraph iMON MultiMedia IR/Display"#define MOD_NAME "imon" -#define MOD_VERSION "0.9.3" +#define MOD_VERSION "0.9.4"#define DISPLAY_MINOR_BASE 144#define DEVICE_NAME "lcd%d"
@@ -1658,9 +1658,17 @@ static void usb_rx_callback_intf0(struct urb *urb)return ; ictx = (struct imon_context *)urb->context; -if (!ictx || !ictx->dev_present_intf0) +if (!ictx)return ; +/* +* if we get a callback before we're done configuring the hardware, we +* can't yet process the data, as there's nowhere to send it, but we +* still need to submit a new rx URB to avoid wedging the hardware +*/ +if (!ictx->dev_present_intf0) + goto out; +switch (urb->status) {case -ENOENT :/* usbcore unlink successful! */ return ;
@@ -1678,6 +1686,7 @@ static void usb_rx_callback_intf0(struct urb *urb)break ; } +out:usb_submit_urb (ictx->rx_urb_intf0,GFP_ATOMIC ); }
@@ -1690,9 +1699,17 @@ static void usb_rx_callback_intf1(struct urb *urb)return ; ictx = (struct imon_context *)urb->context; -if (!ictx || !ictx->dev_present_intf1) +if (!ictx)return ; +/* +* if we get a callback before we're done configuring the hardware, we +* can't yet process the data, as there's nowhere to send it, but we +* still need to submit a new rx URB to avoid wedging the hardware +*/ +if (!ictx->dev_present_intf1) + goto out; +switch (urb->status) {case -ENOENT :/* usbcore unlink successful! */ return ;
@@ -1710,6 +1727,7 @@ static void usb_rx_callback_intf1(struct urb *urb)break ; } +out:usb_submit_urb (ictx->rx_urb_intf1,GFP_ATOMIC ); }
@@ -2242,7 +2260,7 @@ find_endpoint_failed:mutex_unlock (&ictx->lock);usb_free_urb (rx_urb); rx_urb_alloc_failed: -dev_err (ictx->dev,"unable to initialize intf0, err %d\n" , ret); +dev_err (ictx->dev,"unable to initialize intf1, err %d\n" , ret);return NULL ; }
drivers/media/video/hdpvr/hdpvr-video.c +2 -1
@@ -283,12 +283,13 @@ static int hdpvr_start_streaming(struct hdpvr_device *dev)hdpvr_config_call (dev,CTRL_START_STREAMING_VALUE ,0x00 ); + dev->status =STATUS_STREAMING ; +INIT_WORK (&dev->worker, hdpvr_transmit_buffers);queue_work (dev->workqueue, &dev->worker);v4l2_dbg (MSG_BUFFER , hdpvr_debug, &dev->v4l2_dev,"streaming started\n" ); - dev->status =STATUS_STREAMING ;return 0 ; }
drivers/mmc/card/block.c +45 -37
106 lines not on this page · raw message
drivers/net/can/sja1000/sja1000.c +12 -1
@@ -95,11 +95,16 @@ static void sja1000_write_cmdreg(struct sja1000_priv *priv, u8 val)spin_unlock_irqrestore (&priv->cmdreg_lock, flags); } +static int sja1000_is_absent (struct sja1000_priv *priv) +{ +return (priv->read_reg (priv,REG_MOD ) ==0xFF ); +} +static int sja1000_probe_chip (struct net_device *dev) {struct sja1000_priv *priv =netdev_priv (dev); -if (priv->reg_base && (priv->read_reg (priv,0 ) ==0xFF )) { +if (priv->reg_base &&sja1000_is_absent (priv)) {printk (KERN_INFO "%s: probing @0x%lX failed\n" ,DRV_NAME , dev->base_addr);return 0 ;
@@ -493,6 +498,9 @@ irqreturn_t sja1000_interrupt(int irq, void *dev_id)while ((isrc = priv->read_reg (priv,REG_IR )) && (n <SJA1000_MAX_IRQ )) { n++; status = priv->read_reg (priv,REG_SR ); +/* check for absent controller due to hw unplug */ +if (status ==0xFF &&sja1000_is_absent (priv)) +return IRQ_NONE ;if (isrc &IRQ_WUI )dev_warn (dev->dev.parent,"wakeup interrupt\n" );
@@ -509,6 +517,9 @@ irqreturn_t sja1000_interrupt(int irq, void *dev_id)while (status &SR_RBS ) {sja1000_rx (dev); status = priv->read_reg (priv,REG_SR ); +/* check for absent controller */ +if (status ==0xFF &&sja1000_is_absent (priv)) +return IRQ_NONE ; } }if (isrc & (IRQ_DOI |IRQ_EI |IRQ_BEI |IRQ_EPI |IRQ_ALI )) {
drivers/net/ethernet/3com/3c59x.c +1 -1
@@ -1842,7 +1842,7 @@ vortex_timer(unsigned long data) ok =1 ; } -if (!netif_carrier_ok (dev)) +if (dev->flags &IFF_SLAVE || !netif_carrier_ok (dev)) next_tick =5 *HZ ;if (vp->medialock)
drivers/net/ethernet/jme.c +1 -9
@@ -2328,19 +2328,11 @@ jme_change_mtu(struct net_device *netdev, int new_mtu) ((new_mtu) < IPV6_MIN_MTU))return -EINVAL ; -if (new_mtu >4000 ) { - jme->reg_rxcs &= ~RXCS_FIFOTHNP ; - jme->reg_rxcs |=RXCS_FIFOTHNP_64QW ; -jme_restart_rx_engine (jme); - }else { - jme->reg_rxcs &= ~RXCS_FIFOTHNP ; - jme->reg_rxcs |=RXCS_FIFOTHNP_128QW ; -jme_restart_rx_engine (jme); - } netdev->mtu = new_mtu;netdev_update_features (netdev); +jme_restart_rx_engine (jme);jme_reset_link (jme);return 0 ;
drivers/net/ethernet/jme.h +1 -1
@@ -730,7 +730,7 @@ enum jme_rxcs_values {RXCS_RETRYCNT_60 =0x00000F00 ,RXCS_DEFAULT =RXCS_FIFOTHTP_128T | -RXCS_FIFOTHNP_128QW | +RXCS_FIFOTHNP_16QW |RXCS_DMAREQSZ_128B | RXCS_RETRYGAP_256ns | RXCS_RETRYCNT_32,
drivers/net/ethernet/ti/davinci_emac.c +4 -2
@@ -1007,7 +1007,7 @@ static void emac_rx_handler(void *token, int len, int status)int ret;/* free and bail if we are shutting down */ -if (unlikely (!netif_running (ndev) || !netif_carrier_ok (ndev))) { +if (unlikely (!netif_running (ndev))) {dev_kfree_skb_any (skb);return ; }
@@ -1036,7 +1036,9 @@ static void emac_rx_handler(void *token, int len, int status) recycle: ret =cpdma_chan_submit (priv->rxchan, skb, skb->data,skb_tailroom (skb),GFP_KERNEL ); -if (WARN_ON (ret <0 )) + +WARN_ON (ret == -ENOMEM ); +if (unlikely (ret <0 ))dev_kfree_skb_any (skb); }
drivers/net/ethernet/via/via-velocity.c +0 -3
@@ -2489,9 +2489,6 @@ static int velocity_close(struct net_device *dev)if (dev->irq !=0 )free_irq (dev->irq, dev); -/* Power down the chip */ -pci_set_power_state (vptr->pdev, PCI_D3hot); -velocity_free_rings (vptr); vptr->flags &= (~VELOCITY_FLAGS_OPENED );
drivers/net/usb/ipheth.c +5 -0
@@ -60,6 +60,7 @@#define USB_PRODUCT_IPHONE_3GS 0x1294#define USB_PRODUCT_IPHONE_4 0x1297#define USB_PRODUCT_IPHONE_4_VZW 0x129c +#define USB_PRODUCT_IPHONE_4S 0x12a0#define IPHETH_USBINTF_CLASS 255#define IPHETH_USBINTF_SUBCLASS 253
@@ -103,6 +104,10 @@ static struct usb_device_id ipheth_table[] = { USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4_VZW,IPHETH_USBINTF_CLASS ,IPHETH_USBINTF_SUBCLASS , IPHETH_USBINTF_PROTO) }, + { USB_DEVICE_AND_INTERFACE_INFO( +USB_VENDOR_APPLE ,USB_PRODUCT_IPHONE_4S , +IPHETH_USBINTF_CLASS ,IPHETH_USBINTF_SUBCLASS , + IPHETH_USBINTF_PROTO) }, { } };MODULE_DEVICE_TABLE (usb, ipheth_table);
drivers/net/veth.c +3 -1
@@ -423,7 +423,9 @@ static void veth_dellink(struct net_device *dev, struct list_head *head)unregister_netdevice_queue (peer, head); } -static const struct nla_policy veth_policy[VETH_INFO_MAX +1 ]; +static const struct nla_policy veth_policy[VETH_INFO_MAX +1 ] = { + [VETH_INFO_PEER ] = { .len =sizeof (struct ifinfomsg ) }, +};static struct rtnl_link_ops veth_link_ops = { .kind =DRV_NAME ,
drivers/net/wireless/ath/ath9k/rc.c +1 -1
@@ -1347,7 +1347,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, fc = hdr->frame_control;for (i =0 ; i < sc->hw->max_rates; i++) {struct ieee80211_tx_rate *rate = &tx_info->status.rates[i]; -if (!rate->count) +if (rate->idx <0 || !rate->count)break ; final_ts_idx = i;
drivers/pci/probe.c +5 -0
@@ -651,6 +651,11 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,dev_dbg (&dev->dev,"scanning [bus %02x-%02x] behind bridge, pass %d\n" , secondary, subordinate, pass); +if (!primary && (primary != bus->number) && secondary && subordinate) { +dev_warn (&dev->dev,"Primary bus is hard wired to 0\n" ); + primary = bus->number; + } +/* Check if setup is sensible at all */ if (!pass && (primary != bus->number || secondary <= bus->number)) {
drivers/scsi/scsi_pm.c +16 -0
@@ -7,6 +7,7 @@#include <linux/pm_runtime.h> #include <linux/export.h> +#include <linux/async.h> #include <scsi/scsi.h> #include <scsi/scsi_device.h>
@@ -69,6 +70,19 @@ static int scsi_bus_resume_common(struct device *dev)return err; } +static int scsi_bus_prepare (struct device *dev) +{ +if (scsi_is_sdev_device (dev)) { +/* sd probing uses async_schedule. Wait until it finishes. */ +async_synchronize_full (); + + }else if (scsi_is_host_device (dev)) { +/* Wait until async scanning is finished */ +scsi_complete_async_scans (); + } +return 0 ; +} +static int scsi_bus_suspend (struct device *dev) {return scsi_bus_suspend_common (dev,PMSG_SUSPEND );
@@ -87,6 +101,7 @@ static int scsi_bus_poweroff(struct device *dev)#else /* CONFIG_PM_SLEEP */ #define scsi_bus_resume_common NULL +#define scsi_bus_prepare NULL#define scsi_bus_suspend NULL#define scsi_bus_freeze NULL#define scsi_bus_poweroff NULL
@@ -195,6 +210,7 @@ void scsi_autopm_put_host(struct Scsi_Host *shost)#endif /* CONFIG_PM_RUNTIME */ const struct dev_pm_ops scsi_bus_pm_ops = { + .prepare = scsi_bus_prepare, .suspend = scsi_bus_suspend, .resume = scsi_bus_resume_common, .freeze = scsi_bus_freeze,
drivers/scsi/scsi_priv.h +1 -0
@@ -110,6 +110,7 @@ extern void scsi_exit_procfs(void);#endif /* CONFIG_PROC_FS */ /* scsi_scan.c */ +extern int scsi_complete_async_scans (void );extern int scsi_scan_host_selected (struct Scsi_Host *,unsigned int ,unsigned int ,unsigned int ,int );extern void scsi_forget_host (struct Scsi_Host *);
drivers/scsi/scsi_scan.c +2 -2
@@ -1815,6 +1815,7 @@ static void scsi_finish_async_scan(struct async_scan_data *data) }spin_unlock (&async_scan_lock); +scsi_autopm_put_host (shost);scsi_host_put (shost);kfree (data); }
@@ -1841,7 +1842,6 @@ static int do_scan_async(void *_data)do_scsi_scan_host (shost);scsi_finish_async_scan (data); -scsi_autopm_put_host (shost);return 0 ; }
@@ -1869,7 +1869,7 @@ void scsi_scan_host(struct Scsi_Host *shost) p =kthread_run (do_scan_async, data,"scsi_scan_%d" , shost->host_no);if (IS_ERR (p))do_scan_async (data); -/* scsi_autopm_put_host(shost) is called in do_scan_async() */ +/* scsi_autopm_put_host(shost) is called in scsi_finish_async_scan() */ }EXPORT_SYMBOL (scsi_scan_host);
drivers/target/target_core_alua.c +4 -4
@@ -79,7 +79,7 @@ int target_emulate_report_target_port_groups(struct se_task *task)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);spin_lock (&su_dev->t10_alua.tg_pt_gps_lock); list_for_each_entry(tg_pt_gp, &su_dev->t10_alua.tg_pt_gps_list,
@@ -164,7 +164,7 @@ int target_emulate_report_target_port_groups(struct se_task *task) buf[2 ] = ((rd_len >>8 ) &0xff ); buf[3 ] = (rd_len &0xff ); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );
@@ -195,7 +195,7 @@ int target_emulate_set_target_port_groups(struct se_task *task) cmd->scsi_sense_reason =TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE ;return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);/* * Determine if explict ALUA via SET_TARGET_PORT_GROUPS is allowed
@@ -352,7 +352,7 @@ int target_emulate_set_target_port_groups(struct se_task *task) } out: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );return 0 ;
drivers/target/target_core_cdb.c +14 -14
@@ -82,7 +82,7 @@ target_emulate_inquiry_std(struct se_cmd *cmd)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);if (dev == tpg->tpg_virt_lun0.lun_se_dev) { buf[0 ] =0x3f ;/* Not connected */
@@ -135,7 +135,7 @@ target_emulate_inquiry_std(struct se_cmd *cmd) buf[4 ] =31 ;/* Set additional length to 31 */ out: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);return 0 ; }
@@ -726,7 +726,7 @@ int target_emulate_inquiry(struct se_task *task)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = dev->transport->get_device_type (dev);
@@ -743,7 +743,7 @@ int target_emulate_inquiry(struct se_task *task) ret = -EINVAL ; out_unmap: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); out:if (!ret) { task->task_scsi_status =GOOD ;
@@ -765,7 +765,7 @@ int target_emulate_readcapacity(struct se_task *task)else blocks = (u32 )blocks_long; - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = (blocks >>24 ) &0xff ; buf[1 ] = (blocks >>16 ) &0xff ;
@@ -781,7 +781,7 @@ int target_emulate_readcapacity(struct se_task *task)if (dev->se_sub_dev->se_dev_attrib.emulate_tpu || dev->se_sub_dev->se_dev_attrib.emulate_tpws)put_unaligned_be32 (0xFFFFFFFF , &buf[0 ]); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );
@@ -795,7 +795,7 @@ int target_emulate_readcapacity_16(struct se_task *task)unsigned char *buf;unsigned long long blocks = dev->transport->get_blocks (dev); - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = (blocks >>56 ) &0xff ; buf[1 ] = (blocks >>48 ) &0xff ;
@@ -816,7 +816,7 @@ int target_emulate_readcapacity_16(struct se_task *task)if (dev->se_sub_dev->se_dev_attrib.emulate_tpu || dev->se_sub_dev->se_dev_attrib.emulate_tpws) buf[14 ] =0x80 ; -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );
@@ -1029,9 +1029,9 @@ int target_emulate_modesense(struct se_task *task) offset = cmd->data_length; } - rbuf =transport_kmap_first_data_page (cmd); + rbuf =transport_kmap_data_sg (cmd);memcpy (rbuf, buf, offset); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );
@@ -1053,7 +1053,7 @@ int target_emulate_request_sense(struct se_task *task)return -ENOSYS ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);if (!core_scsi3_ua_clear_for_request_sense (cmd, &ua_asc, &ua_ascq)) {/*
@@ -1099,7 +1099,7 @@ int target_emulate_request_sense(struct se_task *task) } end: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); task->task_scsi_status =GOOD ;transport_complete_task (task,1 );return 0 ;
@@ -1133,7 +1133,7 @@ int target_emulate_unmap(struct se_task *task) dl =get_unaligned_be16 (&cdb[0 ]); bd_dl =get_unaligned_be16 (&cdb[2 ]); - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); ptr = &buf[offset]; pr_debug("UNMAP: Sub: %s Using dl: %hu bd_dl: %hu size: %hu"
@@ -1157,7 +1157,7 @@ int target_emulate_unmap(struct se_task *task) } err: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);if (!ret) { task->task_scsi_status =GOOD ;transport_complete_task (task,1 );
drivers/target/target_core_device.c +2 -2
@@ -658,7 +658,7 @@ int target_report_luns(struct se_task *se_task)unsigned char *buf;u32 cdb_offset =0 , lun_count =0 , offset =8 , i; - buf =transport_kmap_first_data_page (se_cmd); + buf = (unsigned char *)transport_kmap_data_sg (se_cmd);/* * If no struct se_session pointer is present, this struct se_cmd is
@@ -696,7 +696,7 @@ int target_report_luns(struct se_task *se_task)* See SPC3 r07, page 159. */ done: -transport_kunmap_first_data_page (se_cmd); +transport_kunmap_data_sg (se_cmd); lun_count *=8 ; buf[0 ] = ((lun_count >>24 ) &0xff ); buf[1 ] = ((lun_count >>16 ) &0xff );
drivers/target/target_core_pr.c +19 -19
@@ -1538,7 +1538,7 @@ static int core_scsi3_decode_spec_i_port( tidh_new->dest_local_nexus =1 ;list_add_tail (&tidh_new->dest_list, &tid_dest_list); - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);/* * For a PERSISTENT RESERVE OUT specify initiator ports payload, * first extract TransportID Parameter Data Length, and make sure
@@ -1789,7 +1789,7 @@ static int core_scsi3_decode_spec_i_port( } -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);/* * Go ahead and create a registrations from tid_dest_list for the
@@ -1837,7 +1837,7 @@ static int core_scsi3_decode_spec_i_port(return 0 ; out: -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);/* * For the failure case, release everything from tid_dest_list * including *dest_pr_reg and the configfs dependances..
@@ -3429,14 +3429,14 @@ static int core_scsi3_emulate_pro_register_and_move(* will be moved to for the TransportID containing SCSI initiator WWN * information. */ - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); rtpi = (buf[18 ] &0xff ) <<8 ; rtpi |= buf[19 ] &0xff ; tid_len = (buf[20 ] &0xff ) <<24 ; tid_len |= (buf[21 ] &0xff ) <<16 ; tid_len |= (buf[22 ] &0xff ) <<8 ; tid_len |= buf[23 ] &0xff ; -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); buf =NULL ;if ((tid_len +24 ) != cmd->data_length) {
@@ -3488,7 +3488,7 @@ static int core_scsi3_emulate_pro_register_and_move(return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); proto_ident = (buf[24 ] &0x0f );#if 0 pr_debug("SPC-3 PR REGISTER_AND_MOVE: Extracted Protocol Identifier:"
@@ -3522,7 +3522,7 @@ static int core_scsi3_emulate_pro_register_and_move( goto out; } -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); buf =NULL ; pr_debug("SPC-3 PR [%s] Extracted initiator %s identifier: %s"
@@ -3787,13 +3787,13 @@ after_iport_check: " REGISTER_AND_MOVE\n"); } -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);core_scsi3_put_pr_reg (dest_pr_reg);return 0 ; out:if (buf) -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);if (dest_se_deve)core_scsi3_lunacl_undepend_item (dest_se_deve);if (dest_node_acl)
@@ -3867,7 +3867,7 @@ int target_scsi3_emulate_pr_out(struct se_task *task) scope = (cdb[2 ] &0xf0 ); type = (cdb[2 ] &0x0f ); - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd);/* * From PERSISTENT_RESERVE_OUT parameter list (payload) */
@@ -3885,7 +3885,7 @@ int target_scsi3_emulate_pr_out(struct se_task *task) aptpl = (buf[17 ] &0x01 ); unreg = (buf[17 ] &0x02 ); } -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd); buf =NULL ;/*
@@ -3985,7 +3985,7 @@ static int core_scsi3_pri_read_keys(struct se_cmd *cmd)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = ((su_dev->t10_pr.pr_generation >>24 ) &0xff ); buf[1 ] = ((su_dev->t10_pr.pr_generation >>16 ) &0xff ); buf[2 ] = ((su_dev->t10_pr.pr_generation >>8 ) &0xff );
@@ -4019,7 +4019,7 @@ static int core_scsi3_pri_read_keys(struct se_cmd *cmd) buf[6 ] = ((add_len >>8 ) &0xff ); buf[7 ] = (add_len &0xff ); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);return 0 ; }
@@ -4045,7 +4045,7 @@ static int core_scsi3_pri_read_reservation(struct se_cmd *cmd)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = ((su_dev->t10_pr.pr_generation >>24 ) &0xff ); buf[1 ] = ((su_dev->t10_pr.pr_generation >>16 ) &0xff ); buf[2 ] = ((su_dev->t10_pr.pr_generation >>8 ) &0xff );
@@ -4104,7 +4104,7 @@ static int core_scsi3_pri_read_reservation(struct se_cmd *cmd) err:spin_unlock (&se_dev->dev_reservation_lock); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);return 0 ; }
@@ -4128,7 +4128,7 @@ static int core_scsi3_pri_report_capabilities(struct se_cmd *cmd)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = ((add_len <<8 ) &0xff ); buf[1 ] = (add_len &0xff );
@@ -4160,7 +4160,7 @@ static int core_scsi3_pri_report_capabilities(struct se_cmd *cmd) buf[4 ] |=0x02 ;/* PR_TYPE_WRITE_EXCLUSIVE */ buf[5 ] |=0x01 ;/* PR_TYPE_EXCLUSIVE_ACCESS_ALLREG */ -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);return 0 ; }
@@ -4190,7 +4190,7 @@ static int core_scsi3_pri_read_full_status(struct se_cmd *cmd)return -EINVAL ; } - buf =transport_kmap_first_data_page (cmd); + buf =transport_kmap_data_sg (cmd); buf[0 ] = ((su_dev->t10_pr.pr_generation >>24 ) &0xff ); buf[1 ] = ((su_dev->t10_pr.pr_generation >>16 ) &0xff );
@@ -4311,7 +4311,7 @@ static int core_scsi3_pri_read_full_status(struct se_cmd *cmd) buf[6 ] = ((add_len >>8 ) &0xff ); buf[7 ] = (add_len &0xff ); -transport_kunmap_first_data_page (cmd); +transport_kunmap_data_sg (cmd);return 0 ; }
drivers/target/target_core_pscsi.c +2 -2
@@ -695,7 +695,7 @@ static int pscsi_transport_complete(struct se_task *task)if (task->task_se_cmd->se_deve->lun_flags &TRANSPORT_LUNFLAGS_READ_ONLY ) { -unsigned char *buf =transport_kmap_first_data_page (task->task_se_cmd); +unsigned char *buf =transport_kmap_data_sg (task->task_se_cmd);if (cdb[0 ] ==MODE_SENSE_10 ) {if (!(buf[3 ] &0x80 ))
@@ -705,7 +705,7 @@ static int pscsi_transport_complete(struct se_task *task) buf[2 ] |=0x80 ; } -transport_kunmap_first_data_page (task->task_se_cmd); +transport_kunmap_data_sg (task->task_se_cmd); } } after_mode_sense:
drivers/target/target_core_transport.c +34 -11
69 lines not on this page · raw message
drivers/usb/core/hcd-pci.c +4 -1
@@ -187,7 +187,10 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)return -ENODEV ; dev->current_state =PCI_D0 ; -if (!dev->irq) { +/* The xHCI driver supports MSI and MSI-X, +* so don't fail if the BIOS doesn't provide a legacy IRQ. +*/ +if (!dev->irq && (driver->flags &HCD_MASK ) !=HCD_USB3 ) {dev_err (&dev->dev,"Found HC with no IRQ. Check BIOS/PCI %s setup!\n" ,pci_name (dev));
drivers/usb/core/hcd.c +4 -2
@@ -2465,8 +2465,10 @@ int usb_add_hcd(struct usb_hcd *hcd, && device_can_wakeup(&hcd->self.root_hub->dev))dev_dbg (hcd->self.controller,"supports USB remote wakeup\n" ); -/* enable irqs just before we start the controller */ -if (usb_hcd_is_primary_hcd (hcd)) { +/* enable irqs just before we start the controller, +* if the BIOS provides legacy PCI irqs. +*/ +if (usb_hcd_is_primary_hcd (hcd) && irqnum) { retval =usb_hcd_request_irqs (hcd, irqnum, irqflags);if (retval) goto err_request_irq;
drivers/usb/core/hub.c +17 -13
@@ -705,10 +705,26 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)if (type ==HUB_INIT3 ) goto init3; -/* After a resume, port power should still be on. +/* The superspeed hub except for root hub has to use Hub Depth +* value as an offset into the route string to locate the bits +* it uses to determine the downstream port number. So hub driver +* should send a set hub depth request to superspeed hub after +* the superspeed hub is set configuration in initialization or +* reset procedure. +* +* After a resume, port power should still be on. * For any other type of activation, turn it on. */ if (type !=HUB_RESUME ) { +if (hdev->parent &&hub_is_superspeed (hdev)) { + ret =usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ), +HUB_SET_DEPTH ,USB_RT_HUB , + hdev->level -1 ,0 ,NULL ,0 , +USB_CTRL_SET_TIMEOUT ); +if (ret <0 ) +dev_err (hub->intfdev, +"set hub depth failed\n" ); + }/* Speed up system boot by using a delayed_work for the * hub's initial power-up delays. This is pretty awkward
@@ -987,18 +1003,6 @@ static int hub_configure(struct usb_hub *hub, goto fail; } -if (hub_is_superspeed (hdev) && (hdev->parent !=NULL )) { - ret =usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ), -HUB_SET_DEPTH ,USB_RT_HUB , - hdev->level -1 ,0 ,NULL ,0 , -USB_CTRL_SET_TIMEOUT ); - -if (ret <0 ) { - message ="can't set hub depth" ; - goto fail; - } - } -/* Request the entire hub descriptor. * hub->descriptor can handle USB_MAXCHILDREN ports, * but the hub can/will return fewer bytes here.
drivers/usb/host/pci-quirks.c +11 -0
@@ -872,7 +872,17 @@ static void __devinit quirk_usb_early_handoff(struct pci_dev *pdev)*/ if (pdev->vendor ==0x184e )/* vendor Netlogic */ return ; +if (pdev->class !=PCI_CLASS_SERIAL_USB_UHCI && + pdev->class !=PCI_CLASS_SERIAL_USB_OHCI && + pdev->class !=PCI_CLASS_SERIAL_USB_EHCI && + pdev->class !=PCI_CLASS_SERIAL_USB_XHCI ) +return ; +if (pci_enable_device (pdev) <0 ) { +dev_warn (&pdev->dev,"Can't enable PCI device, " +"BIOS handoff failed.\n" ); +return ; + }if (pdev->class ==PCI_CLASS_SERIAL_USB_UHCI )quirk_usb_handoff_uhci (pdev);else if (pdev->class ==PCI_CLASS_SERIAL_USB_OHCI )
@@ -881,5 +891,6 @@ static void __devinit quirk_usb_early_handoff(struct pci_dev *pdev)quirk_usb_disable_ehci (pdev); else if (pdev->class == PCI_CLASS_SERIAL_USB_XHCI) quirk_usb_handoff_xhci(pdev); +pci_disable_device (pdev ); }DECLARE_PCI_FIXUP_FINAL (PCI_ANY_ID ,PCI_ANY_ID , quirk_usb_early_handoff);
drivers/usb/host/xhci-hub.c +1 -1
@@ -95,7 +95,7 @@ static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci,*/ memset (port_removable,0 ,sizeof (port_removable));for (i =0 ; i < ports; i++) { - portsc =xhci_readl (xhci, xhci->usb3_ports[i]); + portsc =xhci_readl (xhci, xhci->usb2_ports[i]);/* If a device is removable, PORTSC reports a 0, same as in the * hub descriptor DeviceRemovable bits. */
drivers/usb/host/xhci-mem.c +24 -8
@@ -1140,26 +1140,42 @@ static unsigned int xhci_parse_exponent_interval(struct usb_device *udev, }/* -* Convert bInterval expressed in frames (in 1-255 range) to exponent of +* Convert bInterval expressed in microframes (in 1-255 range) to exponent of * microframes, rounded down to nearest power of 2. */ -static unsigned int xhci_parse_frame_interval (struct usb_device *udev, -struct usb_host_endpoint *ep) +static unsigned int xhci_microframes_to_exponent (struct usb_device *udev, +struct usb_host_endpoint *ep,unsigned int desc_interval, +unsigned int min_exponent,unsigned int max_exponent) {unsigned int interval; - interval =fls (8 * ep->desc.bInterval) -1 ; - interval =clamp_val (interval,3 ,10 ); -if ((1 << interval) !=8 * ep->desc.bInterval) + interval =fls (desc_interval) -1 ; + interval =clamp_val (interval, min_exponent, max_exponent); +if ((1 << interval) != desc_interval)dev_warn (&udev->dev,"ep %#x - rounding interval to %d microframes, ep desc says %d microframes\n" , ep->desc.bEndpointAddress,1 << interval, -8 * ep->desc.bInterval); + desc_interval);return interval; } +static unsigned int xhci_parse_microframe_interval (struct usb_device *udev, +struct usb_host_endpoint *ep) +{ +return xhci_microframes_to_exponent (udev, ep, + ep->desc.bInterval,0 ,15 ); +} + + +static unsigned int xhci_parse_frame_interval (struct usb_device *udev, +struct usb_host_endpoint *ep) +{ +return xhci_microframes_to_exponent (udev, ep, + ep->desc.bInterval *8 ,3 ,10 ); +} +/* Return the polling or NAK interval. * * The polling interval is expressed in "microframes". If xHCI's Interval field
@@ -1178,7 +1194,7 @@ static unsigned int xhci_get_endpoint_interval(struct usb_device *udev,/* Max NAK rate */ if (usb_endpoint_xfer_control (&ep->desc) ||usb_endpoint_xfer_bulk (&ep->desc)) { - interval = ep->desc.bInterval; + interval =xhci_parse_microframe_interval (udev, ep);break ; }/* Fall through - SS and HS isoc/int have same decoding */
drivers/usb/host/xhci.c +5 -0
@@ -352,6 +352,11 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd)/* hcd->irq is -1, we have MSI */ return 0 ; +if (!pdev->irq) { +xhci_err (xhci,"No msi-x/msi found and no IRQ in BIOS\n" ); +return -EINVAL ; + } +/* fall back to legacy interrupt*/ ret =request_irq (pdev->irq, &usb_hcd_irq,IRQF_SHARED , hcd->irq_descr, hcd);
drivers/usb/serial/cp210x.c +2 -0
@@ -136,6 +136,8 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x16DC, 0x0011) }, /* W-IE-NE-R Plein & Baus GmbH RCM Remote Control for MARATON Power Supply */ { USB_DEVICE(0x16DC, 0x0012) }, /* W-IE-NE-R Plein & Baus GmbH MPOD Multi Channel Power Supply */ { USB_DEVICE(0x16DC, 0x0015) }, /* W-IE-NE-R Plein & Baus GmbH CML Control, Monitoring and Data Logger */ + { USB_DEVICE(0x17A8, 0x0001) }, /* Kamstrup Optical Eye/3-wire */ + { USB_DEVICE(0x17A8, 0x0005) }, /* Kamstrup M-Bus Master MultiPort 250D */ { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */
drivers/usb/serial/option.c +13 -130
211 lines not on this page · raw message
drivers/usb/serial/ti_usb_3410_5052.c +4 -2
@@ -165,7 +165,7 @@ static unsigned int product_5052_count;/* the array dimension is the number of default entries plus */ /* TI_EXTRA_VID_PID_COUNT user defined entries plus 1 terminating */ /* null entry */ -static struct usb_device_id ti_id_table_3410[13 +TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_3410[14 +TI_EXTRA_VID_PID_COUNT +1 ] = { {USB_DEVICE (TI_VENDOR_ID ,TI_3410_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_3410_EZ430_ID ) }, {USB_DEVICE (MTS_VENDOR_ID ,MTS_GSM_NO_FW_PRODUCT_ID ) },
@@ -179,6 +179,7 @@ static struct usb_device_id ti_id_table_3410[13+TI_EXTRA_VID_PID_COUNT+1] = { { USB_DEVICE(IBM_VENDOR_ID, IBM_4543_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454B_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454C_PRODUCT_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_PRODUCT_ID) }, }; static struct usb_device_id ti_id_table_5052[5+TI_EXTRA_VID_PID_COUNT+1] = {
@@ -188,7 +189,7 @@ static struct usb_device_id ti_id_table_5052[5+TI_EXTRA_VID_PID_COUNT+1] = { { USB_DEVICE(TI_VENDOR_ID, TI_5052_FIRMWARE_PRODUCT_ID) }, }; -static struct usb_device_id ti_id_table_combined[17 +2 *TI_EXTRA_VID_PID_COUNT +1 ] = { +static struct usb_device_id ti_id_table_combined[18 +2 *TI_EXTRA_VID_PID_COUNT +1 ] = { {USB_DEVICE (TI_VENDOR_ID ,TI_3410_PRODUCT_ID ) }, {USB_DEVICE (TI_VENDOR_ID ,TI_3410_EZ430_ID ) }, { USB_DEVICE(MTS_VENDOR_ID, MTS_GSM_NO_FW_PRODUCT_ID) },
@@ -206,6 +207,7 @@ static struct usb_device_id ti_id_table_combined[17+2*TI_EXTRA_VID_PID_COUNT+1] { USB_DEVICE(IBM_VENDOR_ID, IBM_4543_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454B_PRODUCT_ID) }, { USB_DEVICE(IBM_VENDOR_ID, IBM_454C_PRODUCT_ID) }, + { USB_DEVICE(ABBOTT_VENDOR_ID, ABBOTT_PRODUCT_ID) }, { } };
drivers/usb/serial/ti_usb_3410_5052.h +4 -0
@@ -49,6 +49,10 @@#define MTS_MT9234ZBA_PRODUCT_ID 0xF115#define MTS_MT9234ZBAOLD_PRODUCT_ID 0x0319 +/* Abbott Diabetics vendor and product ids */ +#define ABBOTT_VENDOR_ID 0x1a61 +#define ABBOTT_PRODUCT_ID 0x3410 +/* Commands */ #define TI_GET_VERSION 0x01#define TI_GET_PORT_STATUS 0x02
drivers/usb/storage/usb.c +31 -58
132 lines not on this page · raw message
drivers/usb/storage/usb.h +4 -3
@@ -47,6 +47,7 @@#include <linux/blkdev.h> #include <linux/completion.h> #include <linux/mutex.h> +#include <linux/workqueue.h> #include <scsi/scsi_host.h> struct us_data ;
@@ -72,7 +73,7 @@ struct us_unusual_dev {#define US_FLIDX_DISCONNECTING 3/* disconnect in progress */ #define US_FLIDX_RESETTING 4/* device reset in progress */ #define US_FLIDX_TIMED_OUT 5/* SCSI midlayer timed out */ -#define US_FLIDX_DONT_SCAN 6/* don't scan (disconnect) */ +#define US_FLIDX_SCAN_PENDING 6/* scanning not yet done */ #define US_FLIDX_REDO_READ10 7/* redo READ(10) command */ #define US_FLIDX_READ10_WORKED 8/* previous READ(10) succeeded */
@@ -147,8 +148,8 @@ struct us_data {/* mutual exclusion and synchronization structures */ struct completion cmnd_ready;/* to sleep thread on */ struct completion notify;/* thread begin/end */ -wait_queue_head_t delay_wait;/* wait during scan, reset */ -struct completion scanning_done;/* wait for scan thread */ +wait_queue_head_t delay_wait;/* wait during reset */ +struct delayed_work scan_dwork;/* for async scanning */ /* subdriver information */ void *extra;/* Any extra data */
drivers/video/omap2/dss/dpi.c +5 -0
@@ -180,6 +180,11 @@ int omapdss_dpi_display_enable(struct omap_dss_device *dssdev) {int r; +if (cpu_is_omap34xx () && !dpi.vdds_dsi_reg) { +DSSERR ("no VDSS_DSI regulator\n" ); +return -ENODEV ; + } +if (dssdev->manager ==NULL ) {DSSERR ("failed to enable display: no manager\n" );return -ENODEV ;
fs/ecryptfs/inode.c +2 -0
@@ -1104,6 +1104,8 @@ ecryptfs_setxattr(struct dentry *dentry, const char *name, const void *value, } rc =vfs_setxattr (lower_dentry, name, value, size, flags); +if (!rc) +fsstack_copy_attr_all (dentry->d_inode, lower_dentry->d_inode); out:return rc; }
fs/eventpoll.c +238 -26
390 lines not on this page · raw message
fs/namei.c +3 -1
@@ -1094,8 +1094,10 @@ static struct dentry *d_inode_lookup(struct dentry *parent, struct dentry *dentrstruct dentry *old;/* Don't create child dentry for a dead directory. */ -if (unlikely (IS_DEADDIR (inode))) +if (unlikely (IS_DEADDIR (inode))) { +dput (dentry);return ERR_PTR (-ENOENT ); + } old = inode->i_op->lookup (inode, dentry, nd);if (unlikely (old)) {
fs/nfs/nfs4proc.c +13 -10
@@ -3568,8 +3568,8 @@ static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu }if (npages >1 ) {/* for decoding across pages */ - args.acl_scratch =alloc_page (GFP_KERNEL ); -if (!args.acl_scratch) + res.acl_scratch =alloc_page (GFP_KERNEL ); +if (!res.acl_scratch) goto out_free; } args.acl_len = npages *PAGE_SIZE ;
@@ -3605,8 +3605,8 @@ out_free:for (i =0 ; i < npages; i++)if (pages[i])__free_page (pages[i]); -if (args.acl_scratch) -__free_page (args.acl_scratch); +if (res.acl_scratch) +__free_page (res.acl_scratch);return ret; }
@@ -4876,8 +4876,10 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) clp->cl_rpcclient->cl_auth->au_flavor); res.server_scope =kzalloc (sizeof (struct server_scope ),GFP_KERNEL ); -if (unlikely (!res.server_scope)) -return -ENOMEM ; +if (unlikely (!res.server_scope)) { + status = -ENOMEM ; + goto out; + } status =rpc_call_sync (clp->cl_rpcclient, &msg,RPC_TASK_TIMEOUT );if (!status)
@@ -4894,12 +4896,13 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) clp->server_scope =NULL ; } -if (!clp->server_scope) +if (!clp->server_scope) { clp->server_scope = res.server_scope; -else -kfree (res.server_scope); + goto out; + } } - +kfree (res.server_scope); +out:dprintk ("<-- %s status= %d\n" , __func__, status);return status; }
fs/nfs/nfs4state.c +2 -0
@@ -1071,6 +1071,8 @@ void nfs4_schedule_stateid_recovery(const struct nfs_server *server, struct nfs4 {struct nfs_client *clp = server->nfs_client; +if (test_and_clear_bit (NFS_DELEGATED_STATE , &state->flags)) +nfs_async_inode_return_delegation (state->inode, &state->stateid);nfs4_state_mark_reclaim_nograce (clp, state);nfs4_schedule_state_manager (clp); }
fs/nfs/nfs4xdr.c +4 -1
@@ -2522,7 +2522,6 @@ static void nfs4_xdr_enc_getacl(struct rpc_rqst *req, struct xdr_stream *xdr,xdr_inline_pages (&req->rq_rcv_buf, replen <<2 , args->acl_pages, args->acl_pgbase, args->acl_len); -xdr_set_scratch_buffer (xdr,page_address (args->acl_scratch),PAGE_SIZE );encode_nops (&hdr); }
@@ -6034,6 +6033,10 @@ nfs4_xdr_dec_getacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr,struct compound_hdr hdr;int status; +if (res->acl_scratch !=NULL ) { +void *p =page_address (res->acl_scratch); +xdr_set_scratch_buffer (xdr, p,PAGE_SIZE ); + } status =decode_compound_hdr (xdr, &hdr);if (status) goto out;
fs/signalfd.c +15 -0
@@ -30,6 +30,21 @@#include <linux/signalfd.h> #include <linux/syscalls.h> +void signalfd_cleanup (struct sighand_struct *sighand) +{ +wait_queue_head_t *wqh = &sighand->signalfd_wqh; +/* +* The lockless check can race with remove_wait_queue() in progress, +* but in this case its caller should run under rcu_read_lock() and +* sighand_cachep is SLAB_DESTROY_BY_RCU, we can safely return. +*/ +if (likely (!waitqueue_active (wqh))) +return ; + +/* wait_queue_t->func(POLLFREE) should do remove_wait_queue() */ +wake_up_poll (wqh,POLLHUP |POLLFREE ); +} +struct signalfd_ctx {sigset_t sigmask; };
include/asm-generic/poll.h +2 -0
@@ -28,6 +28,8 @@#define POLLRDHUP 0x2000#endif +#define POLLFREE 0x4000/* currently only for epoll */ +struct pollfd {int fd;short events;
include/linux/eventpoll.h +1 -0
@@ -61,6 +61,7 @@ struct file;static inline void eventpoll_init_file (struct file *file) {INIT_LIST_HEAD (&file->f_ep_links); +INIT_LIST_HEAD (&file->f_tfile_llink); }
include/linux/fs.h +1 -0
@@ -1001,6 +1001,7 @@ struct file {#ifdef CONFIG_EPOLL /* Used by fs/eventpoll.c to link all the hooks to this file */ struct list_head f_ep_links; +struct list_head f_tfile_llink;#endif /* #ifdef CONFIG_EPOLL */ struct address_space *f_mapping;#ifdef CONFIG_DEBUG_WRITECOUNT
include/linux/nfs_xdr.h +1 -1
@@ -602,7 +602,6 @@ struct nfs_getaclargs {size_t acl_len;unsigned int acl_pgbase;struct page ** acl_pages; -struct page * acl_scratch;struct nfs4_sequence_args seq_args; };
@@ -612,6 +611,7 @@ struct nfs_getaclres {size_t acl_len;size_t acl_data_offset;int acl_flags; +struct page * acl_scratch;struct nfs4_sequence_res seq_res; };
include/linux/signalfd.h +4 -1
@@ -61,13 +61,16 @@ static inline void signalfd_notify(struct task_struct *tsk, int sig)wake_up (&tsk->sighand->signalfd_wqh); } +extern void signalfd_cleanup (struct sighand_struct *sighand); +#else /* CONFIG_SIGNALFD */ static inline void signalfd_notify (struct task_struct *tsk,int sig) { } +static inline void signalfd_cleanup (struct sighand_struct *sighand) { } +#endif /* CONFIG_SIGNALFD */ #endif /* __KERNEL__ */ #endif /* _LINUX_SIGNALFD_H */ -
include/linux/usb/ch11.h +2 -8
@@ -62,12 +62,6 @@#define USB_PORT_FEAT_TEST 21#define USB_PORT_FEAT_INDICATOR 22#define USB_PORT_FEAT_C_PORT_L1 23 -#define USB_PORT_FEAT_C_PORT_LINK_STATE 25 -#define USB_PORT_FEAT_C_PORT_CONFIG_ERROR 26 -#define USB_PORT_FEAT_PORT_REMOTE_WAKE_MASK 27 -#define USB_PORT_FEAT_BH_PORT_RESET 28 -#define USB_PORT_FEAT_C_BH_PORT_RESET 29 -#define USB_PORT_FEAT_FORCE_LINKPM_ACCEPT 30/* * Port feature selectors added by USB 3.0 spec.
@@ -76,8 +70,8 @@#define USB_PORT_FEAT_LINK_STATE 5#define USB_PORT_FEAT_U1_TIMEOUT 23#define USB_PORT_FEAT_U2_TIMEOUT 24 -#define USB_PORT_FEAT_C_LINK_STATE 25 -#define USB_PORT_FEAT_C_CONFIG_ERR 26 +#define USB_PORT_FEAT_C_PORT_LINK_STATE 25 +#define USB_PORT_FEAT_C_PORT_CONFIG_ERROR 26#define USB_PORT_FEAT_REMOTE_WAKE_MASK 27#define USB_PORT_FEAT_BH_PORT_RESET 28#define USB_PORT_FEAT_C_BH_PORT_RESET 29
include/net/flow.h +10 -0
@@ -90,6 +90,16 @@ static inline void flowi4_init_output(struct flowi4 *fl4, int oif, fl4->fl4_dport = dport; fl4->fl4_sport = sport; } + +/* Reset some input parameters after previous lookup */ +static inline void flowi4_update_output (struct flowi4 *fl4,int oif,__u8 tos, +__be32 daddr,__be32 saddr) +{ + fl4->flowi4_oif = oif; + fl4->flowi4_tos = tos; + fl4->daddr = daddr; + fl4->saddr = saddr; +}struct flowi6 {
include/net/route.h +4 -0
@@ -270,6 +270,7 @@ static inline struct rtable *ip_route_connect(struct flowi4 *fl4,if (IS_ERR (rt))return rt;ip_rt_put (rt); +flowi4_update_output (fl4, oif, tos, fl4->daddr, fl4->saddr); }security_sk_classify_flow (sk,flowi4_to_flowi (fl4));return ip_route_output_flow (net, fl4, sk);
@@ -284,6 +285,9 @@ static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable fl4->fl4_dport = dport; fl4->fl4_sport = sport;ip_rt_put (rt); +flowi4_update_output (fl4, sk->sk_bound_dev_if, +RT_CONN_FLAGS (sk), fl4->daddr, + fl4->saddr);security_sk_classify_flow (sk,flowi4_to_flowi (fl4));return ip_route_output_flow (sock_net (sk), fl4, sk); }
include/net/sch_generic.h +8 -1
@@ -220,9 +220,16 @@ struct tcf_proto {struct qdisc_skb_cb {unsigned int pkt_len; -long data[]; +unsigned char data[24 ]; }; +static inline void qdisc_cb_private_validate (const struct sk_buff *skb,int sz) +{ +struct qdisc_skb_cb *qcb; +BUILD_BUG_ON (sizeof (skb->cb) <sizeof (unsigned int ) + sz); +BUILD_BUG_ON (sizeof (qcb->data) < sz); +} +static inline int qdisc_qlen (const struct Qdisc *q) {return q->q.qlen;
include/target/target_core_base.h +1 -0
@@ -486,6 +486,7 @@ struct se_cmd {struct scatterlist *t_data_sg;unsigned int t_data_nents; +void *t_data_vmap;struct scatterlist *t_bidi_data_sg;unsigned int t_bidi_data_nents;
include/target/target_core_transport.h +2 -2
@@ -129,8 +129,8 @@ extern void transport_init_se_cmd(struct se_cmd *, struct target_core_fabric_ops *, struct se_session *, u32, int, int, unsigned char *); -void *transport_kmap_first_data_page (struct se_cmd *cmd); -void transport_kunmap_first_data_page (struct se_cmd *cmd); +void *transport_kmap_data_sg (struct se_cmd *); +void transport_kunmap_data_sg (struct se_cmd *);extern int transport_generic_allocate_tasks (struct se_cmd *,unsigned char *);extern int transport_handle_cdb_direct (struct se_cmd *);extern int transport_generic_handle_cdb_map (struct se_cmd *);
kernel/fork.c +4 -1
@@ -66,6 +66,7 @@#include <linux/user-return-notifier.h> #include <linux/oom.h> #include <linux/khugepaged.h> +#include <linux/signalfd.h> #include <asm/pgtable.h> #include <asm/pgalloc.h>
@@ -910,8 +911,10 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk)void __cleanup_sighand (struct sighand_struct *sighand) { -if (atomic_dec_and_test (&sighand->count)) +if (atomic_dec_and_test (&sighand->count)) { +signalfd_cleanup (sighand);kmem_cache_free (sighand_cachep, sighand); + } }
kernel/irq/autoprobe.c +2 -2
@@ -53,7 +53,7 @@ unsigned long probe_irq_on(void)if (desc->irq_data.chip->irq_set_type) desc->irq_data.chip->irq_set_type (&desc->irq_data,IRQ_TYPE_PROBE ); -irq_startup (desc); +irq_startup (desc, false); }raw_spin_unlock_irq (&desc->lock); }
@@ -70,7 +70,7 @@ unsigned long probe_irq_on(void)raw_spin_lock_irq (&desc->lock);if (!desc->action &&irq_settings_can_probe (desc)) { desc->istate |=IRQS_AUTODETECT |IRQS_WAITING ; -if (irq_startup (desc)) +if (irq_startup (desc, false)) desc->istate |=IRQS_PENDING ; }raw_spin_unlock_irq (&desc->lock);
kernel/irq/chip.c +33 -9
79 lines not on this page · raw message
kernel/irq/internals.h +1 -1
@@ -67,7 +67,7 @@ extern int __irq_set_trigger(struct irq_desc *desc, unsigned int irq,extern void __disable_irq (struct irq_desc *desc,unsigned int irq,bool susp);extern void __enable_irq (struct irq_desc *desc,unsigned int irq,bool resume); -extern int irq_startup (struct irq_desc *desc); +extern int irq_startup (struct irq_desc *desc,bool resend);extern void irq_shutdown (struct irq_desc *desc);extern void irq_enable (struct irq_desc *desc);extern void irq_disable (struct irq_desc *desc);
kernel/irq/manage.c +1 -1
@@ -1027,7 +1027,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) desc->istate |=IRQS_ONESHOT ;if (irq_settings_can_autoenable (desc)) -irq_startup (desc); +irq_startup (desc, true);else /* Undo nested disables: */ desc->depth =1 ;
mm/nommu.c +7 -0
@@ -696,9 +696,11 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)if (vma->vm_file) { mapping = vma->vm_file->f_mapping; +mutex_lock (&mapping->i_mmap_mutex);flush_dcache_mmap_lock (mapping);vma_prio_tree_insert (vma, &mapping->i_mmap);flush_dcache_mmap_unlock (mapping); +mutex_unlock (&mapping->i_mmap_mutex); }/* add the VMA to the tree */
@@ -760,9 +762,11 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)if (vma->vm_file) { mapping = vma->vm_file->f_mapping; +mutex_lock (&mapping->i_mmap_mutex);flush_dcache_mmap_lock (mapping);vma_prio_tree_remove (vma, &mapping->i_mmap);flush_dcache_mmap_unlock (mapping); +mutex_unlock (&mapping->i_mmap_mutex); }/* remove from the MM's tree and list */
@@ -2052,6 +2056,7 @@ int nommu_shrink_inode_mappings(struct inode *inode, size_t size, high = (size +PAGE_SIZE -1 ) >>PAGE_SHIFT ;down_write (&nommu_region_sem); +mutex_lock (&inode->i_mapping->i_mmap_mutex);/* search for VMAs that fall within the dead zone */ vma_prio_tree_foreach(vma, &iter, &inode->i_mapping->i_mmap,
@@ -2059,6 +2064,7 @@ int nommu_shrink_inode_mappings(struct inode *inode, size_t size,/* found one - only interested if it's shared out of the page * cache */ if (vma->vm_flags &VM_SHARED ) { +mutex_unlock (&inode->i_mapping->i_mmap_mutex);up_write (&nommu_region_sem);return -ETXTBSY ;/* not quite true, but near enough */ }
@@ -2086,6 +2092,7 @@ int nommu_shrink_inode_mappings(struct inode *inode, size_t size, } } +mutex_unlock (&inode->i_mapping->i_mmap_mutex);up_write (&nommu_region_sem);return 0 ; }
net/core/dev.c +8 -2
@@ -3565,14 +3565,20 @@ static inline gro_result_t __napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb) { struct sk_buff *p; +unsigned int maclen = skb->dev->hard_header_len;for (p = napi->gro_list; p; p = p->next) {unsigned long diffs; diffs = (unsigned long )p->dev ^ (unsigned long )skb->dev; diffs |= p->vlan_tci ^ skb->vlan_tci; - diffs |=compare_ether_header (skb_mac_header (p), -skb_gro_mac_header (skb)); +if (maclen ==ETH_HLEN ) + diffs |=compare_ether_header (skb_mac_header (p), +skb_gro_mac_header (skb)); +else if (!diffs) + diffs =memcmp (skb_mac_header (p), +skb_gro_mac_header (skb), + maclen);NAPI_GRO_CB (p)->same_flow = !diffs;NAPI_GRO_CB (p)->flush =0 ; }
net/core/netpoll.c +1 -1
@@ -194,7 +194,7 @@ static void netpoll_poll_dev(struct net_device *dev)poll_napi (dev); -if (dev->priv_flags &IFF_SLAVE ) { +if (dev->flags &IFF_SLAVE ) {if (dev->npinfo) {struct net_device *bond_dev = dev->master;struct sk_buff *skb;
net/ipv4/arp.c +2 -1
@@ -867,7 +867,8 @@ static int arp_process(struct sk_buff *skb)if (addr_type ==RTN_UNICAST && (arp_fwd_proxy (in_dev, dev, rt) ||arp_fwd_pvlan (in_dev, dev, rt, sip, tip) || -pneigh_lookup (&arp_tbl, net, &tip, dev,0 ))) { + (rt->dst.dev != dev && +pneigh_lookup (&arp_tbl, net, &tip, dev,0 )))) { n =neigh_event_ns (&arp_tbl, sha, &sip, dev);if (n)neigh_release (n);
net/ipv4/ip_options.c +1 -1
@@ -573,8 +573,8 @@ void ip_forward_options(struct sk_buff *skb) }if (srrptr +3 <= srrspace) { opt->is_changed =1 ; -ip_rt_get_source (&optptr[srrptr-1 ], skb, rt);ip_hdr (skb)->daddr = opt->nexthop; +ip_rt_get_source (&optptr[srrptr-1 ], skb, rt); optptr[2 ] = srrptr+4 ; }else if (net_ratelimit ())printk (KERN_CRIT "ip_forward(): Argh! Destination lost!\n" );
net/ipv4/tcp_input.c +29 -16
109 lines not on this page · raw message
net/ipv4/tcp_ipv4.c +5 -0
@@ -650,6 +650,11 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb) arg.iov[0].iov_len, IPPROTO_TCP, 0); arg.csumoffset = offsetof(struct tcphdr , check) /2 ; arg.flags = (sk &&inet_sk (sk)->transparent) ?IP_REPLY_ARG_NOSRCCHECK :0 ; +/* When socket is gone, all binding information is lost. +* routing might fail in this case. using iif for oif to +* make sure we can deliver it +*/ + arg.bound_dev_if = sk ? sk->sk_bound_dev_if :inet_iif (skb); net =dev_net (skb_dst (skb)->dev); arg.tos =ip_hdr (skb)->tos;
net/mac80211/main.c +2 -2
@@ -885,6 +885,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)wiphy_debug (local->hw.wiphy,"Failed to initialize wep: %d\n" , result); +ieee80211_led_init (local); +rtnl_lock (); result = ieee80211_init_rate_ctrl_alg(local,
@@ -906,8 +908,6 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)rtnl_unlock (); -ieee80211_led_init (local); - local->network_latency_notifier.notifier_call = ieee80211_max_network_latency; result = pm_qos_add_notifier(PM_QOS_NETWORK_LATENCY,
net/netfilter/ipvs/ip_vs_core.c +1 -1
@@ -232,6 +232,7 @@ ip_vs_sched_persist(struct ip_vs_service *svc,__be16 dport =0 ;/* destination port to forward */ unsigned int flags;struct ip_vs_conn_param param; +const union nf_inet_addr fwmark = { .ip =htonl (svc->fwmark) };union nf_inet_addr snet;/* source network of the client, after masking */
@@ -267,7 +268,6 @@ ip_vs_sched_persist(struct ip_vs_service *svc, {int protocol = iph.protocol;const union nf_inet_addr *vaddr = &iph.daddr; -const union nf_inet_addr fwmark = { .ip =htonl (svc->fwmark) };__be16 vport =0 ;if (dst_port == svc->port) {
net/sched/sch_choke.c +1 -2
@@ -225,8 +225,7 @@ struct choke_skb_cb {static inline struct choke_skb_cb *choke_skb_cb (const struct sk_buff *skb) { -BUILD_BUG_ON (sizeof (skb->cb) < -sizeof (struct qdisc_skb_cb ) +sizeof (struct choke_skb_cb )); +qdisc_cb_private_validate (skb,sizeof (struct choke_skb_cb ));return (struct choke_skb_cb *)qdisc_skb_cb (skb)->data; }
net/sched/sch_netem.c +3 -4
@@ -118,8 +118,7 @@ struct netem_skb_cb {static inline struct netem_skb_cb *netem_skb_cb (struct sk_buff *skb) { -BUILD_BUG_ON (sizeof (skb->cb) < -sizeof (struct qdisc_skb_cb ) +sizeof (struct netem_skb_cb )); +qdisc_cb_private_validate (skb,sizeof (struct netem_skb_cb ));return (struct netem_skb_cb *)qdisc_skb_cb (skb)->data; }
@@ -383,8 +382,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) q->counter =0 ;__skb_queue_head (&q->qdisc->q, skb); - q->qdisc->qstats.backlog +=qdisc_pkt_len (skb); - q->qdisc->qstats.requeues++; + sch->qstats.backlog +=qdisc_pkt_len (skb); + sch->qstats.requeues++; ret =NET_XMIT_SUCCESS ; }
net/sched/sch_sfb.c +1 -2
@@ -93,8 +93,7 @@ struct sfb_skb_cb {static inline struct sfb_skb_cb *sfb_skb_cb (const struct sk_buff *skb) { -BUILD_BUG_ON (sizeof (skb->cb) < -sizeof (struct qdisc_skb_cb ) +sizeof (struct sfb_skb_cb )); +qdisc_cb_private_validate (skb,sizeof (struct sfb_skb_cb ));return (struct sfb_skb_cb *)qdisc_skb_cb (skb)->data; }
scripts/package/builddeb +6 -6
@@ -238,14 +238,14 @@ EOF fi # Build header package -(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$) -(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$) -(cd $objtree; find .config Module.symvers include scripts -type f >> /tmp/objfiles$$) +(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles") +(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles") +(cd $objtree; find .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles") destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir" -(cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -) -(cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -) -rm -f /tmp/files$$ /tmp/objfiles$$ +(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -) +(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -) +rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles" arch=$(dpkg --print-architecture) cat <<EOF >> debian/control
security/tomoyo/.gitignore new file +2 -0
@@ -0,0 +1,2 @@ +builtin-policy.h +policy/
sound/pci/hda/patch_conexant.c +10 -1
@@ -1899,6 +1899,10 @@ static void cxt5051_init_mic_port(struct hda_codec *codec, hda_nid_t nid,snd_hda_codec_write (codec, nid,0 ,AC_VERB_SET_UNSOLICITED_ENABLE ,AC_USRSP_EN | event); +} + +static void cxt5051_init_mic_jack (struct hda_codec *codec,hda_nid_t nid) +{snd_hda_input_jack_add (codec, nid,SND_JACK_MICROPHONE ,NULL );snd_hda_input_jack_report (codec, nid); }
@@ -1916,7 +1920,6 @@ static int cxt5051_init(struct hda_codec *codec)struct conexant_spec *spec = codec->spec;conexant_init (codec); -conexant_init_jacks (codec);if (spec->auto_mic &AUTO_MIC_PORTB )cxt5051_init_mic_port (codec,0x17 ,CXT5051_PORTB_EVENT );
@@ -2037,6 +2040,12 @@ static int patch_cxt5051(struct hda_codec *codec)if (spec->beep_amp)snd_hda_attach_beep_device (codec, spec->beep_amp); +conexant_init_jacks (codec); +if (spec->auto_mic &AUTO_MIC_PORTB ) +cxt5051_init_mic_jack (codec,0x17 ); +if (spec->auto_mic &AUTO_MIC_PORTC ) +cxt5051_init_mic_jack (codec,0x18 ); +return 0 ; }
sound/pci/hda/patch_realtek.c +16 -3
@@ -79,6 +79,8 @@ enum { ALC_AUTOMUTE_MIXER, /* mute/unmute mixer widget AMP */ }; +#define MAX_VOL_NIDS 0x40 +struct alc_spec {/* codec parameterization */ const struct snd_kcontrol_new *mixers[5 ];/* mixer arrays */
@@ -117,8 +119,8 @@ struct alc_spec {const hda_nid_t *capsrc_nids;hda_nid_t dig_in_nid;/* digital-in NID; optional */ hda_nid_t mixer_nid;/* analog-mixer NID */ -DECLARE_BITMAP (vol_ctls,0x20 <<1 );
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.