Linux 3.6.11
Greg KH
maintainerI'm announcing the release of the 3.6.11 kernel.
Note, this is the LAST kernel in the 3.6.y series, it is now end-of-life. Please move to the 3.7.y kernel series at this time.
The updated 3.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.6.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/include/asm/hwcap.h | 3 arch/arm/include/asm/vfpmacros.h | 12 +- arch/arm/vfp/vfpmodule.c | 9 + arch/powerpc/platforms/pseries/eeh_driver.c | 35 ++++-- arch/x86/kernel/hpet.c | 4 drivers/acpi/battery.c | 77 ++++++++++++++ drivers/acpi/sleep.c | 8 + drivers/acpi/video.c | 14 ++ drivers/acpi/video_detect.c | 8 + drivers/block/floppy.c | 5 drivers/edac/edac_mc.c | 14 ++ drivers/edac/i82975x_edac.c | 11 -- drivers/gpu/drm/i915/intel_bios.c | 11 -- drivers/gpu/drm/i915/intel_display.c | 11 ++ drivers/hwmon/fam15h_power.c | 4 drivers/input/matrix-keymap.c | 3 drivers/mmc/host/sh_mmcif.c | 8 - drivers/net/bonding/bond_main.c | 7 + drivers/net/bonding/bond_sysfs.c | 2 drivers/net/ethernet/8390/ne.c | 1 drivers/net/ethernet/sis/sis900.c | 2 drivers/net/irda/sir_dev.c | 2 drivers/net/usb/cdc_ncm.c | 22 +++- drivers/net/usb/ipheth.c | 5 drivers/pci/bus.c | 3 drivers/pci/pcie/aer/aerdrv_core.c | 20 ++- drivers/pnp/pnpacpi/core.c | 3 drivers/staging/ipack/bridges/tpci200.c | 2 drivers/usb/class/cdc-acm.c | 38 ++++++ drivers/usb/host/ehci-q.c | 12 -- drivers/usb/host/ehci-sched.c | 4 drivers/usb/host/ohci-q.c | 19 +++ drivers/usb/host/xhci-pci.c | 7 - drivers/usb/serial/cp210x.c | 1 drivers/usb/serial/ftdi_sio.c | 3 drivers/usb/serial/ftdi_sio_ids.h | 6 + drivers/usb/serial/option.c | 25 ++++ drivers/usb/storage/Kconfig | 2 include/linux/mempolicy.h | 16 -- kernel/rcutree.c | 15 +- kernel/trace/ftrace.c | 2 kernel/trace/ring_buffer.c | 16 ++ kernel/workqueue.c | 4 mm/dmapool.c | 31 +---- mm/mempolicy.c | 22 ---- mm/shmem.c | 26 ++-- net/ipv4/icmp.c | 3 net/ipv4/inet_diag.c | 154 ++++++++++++++++++++++------ net/ipv4/ip_fragment.c | 19 +-- net/ipv4/route.c | 7 - net/ipv6/inet6_connection_sock.c | 3 net/sctp/chunk.c | 20 ++- net/sctp/socket.c | 4 sound/soc/Makefile | 5 tools/perf/builtin-test.c | 38 ++---- 56 files changed, 564 insertions(+), 246 deletions(-)
Alan Cox (1):
ne2000: add the right platform device
Alan Stern (2):
USB: OHCI: workaround for hardware bug: retired TDs not added to the Done Queue
USB: EHCI: bugfix: urb->hcpriv should not be NULL
Alexander Shiyan (1):
irda: sir_dev: Fix copy/paste typo
Bjørn Mork (2):
USB: option: blacklist network interface on Huawei E173
net: cdc_ncm: add Huawei devices
Boris Ostrovsky (1):
x86,AMD: Power driver support for AMD's family 16h processors
Chris Ball (1):
Revert misapplied "mmc: sh-mmcif: avoid oops on spurious interrupts"
Dan Carpenter (1):
ftrace: Clear bits properly in reset_iter_read()
Dan Williams (1):
cdc-acm: implement TIOCSSERIAL to avoid blocking close(2)
Eric Dumazet (2):
rcu: Fix batch-limit size problem
ipv6: fix inet6_csk_update_pmtu() return value
Florian Fainelli (1):
Input: matrix-keymap - provide proper module license
Francois Romieu (1):
sis900: fix sis900_set_mode call parameters.
Greg Kroah-Hartman (2):
USB: mark uas driver as BROKEN
Linux 3.6.11
Guennadi Liakhovetski (1):
mmc: sh-mmcif: avoid oops on spurious interrupts (second try)
Huang Ying (1):
PCI/PM: Fix deadlock when unbinding device if parent in D3cold
Jan Beulich (1):
x86: hpet: Fix masking of MSI interrupts
Jani Nikula (2):
drm/i915: do not ignore eDP bpc settings from vbt drm/i915: do not default to 18 bpp for eDP if missing from VBT
Jay Purohit (1):
usb/ipheth: Add iPhone 5 support
Jiri Kosina (1):
floppy: destroy floppy workqueue before cleaning up the queue
Johannes Berg (1):
ipv4: ip_check_defrag must not modify skb before unsharing
Julian Anastasov (1):
ipv4: do not cache looped multicasts
Kamil Iskra (1):
ACPI / battery: Correct battery capacity values on Thinkpads
Lan Tianyu (2):
ACPI / PM: Add Sony Vaio VPCEB1S1E to nonvs blacklist. ACPI / video: Add "Asus UL30VT" to ACPI video detect blacklist
Marek Szyprowski (1):
mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls
Markus Becker (1):
USB: cp210x: add Virtenio Preon32 device id
Martin Teichmann (1):
USB: ftdi_sio: Add support for Newport AGILIS motor drivers
Mauro Carvalho Chehab (2):
i82975x_edac: Fix dimm label initialization
edac: Fix the dimm filling for csrows-based layouts
Mel Gorman (1):
tmpfs: fix shared mempolicy leak
Neal Cardwell (5):
ipv4: avoid passing NULL to inet_putpeer() in icmpv4_xrlim_allow()
inet_diag: fix oops for IPv4 AF_INET6 TCP SYN-RECV state
inet_diag: validate byte code to prevent oops in inet_diag_bc_run()
inet_diag: avoid unsafe and nonsensical prefix matches in inet_diag_bc_run()
inet_diag: validate port comparison byte code to prevent unsafe reads
Paul Walmsley (1):
ARM: 7566/1: vfp: fix save and restore when running on pre-VFPv3 and CONFIG_VFPv3 set
Peter Korsgaard (1):
usb: ftdi_sio: fixup BeagleBone A5+ quirk
Peter Ujfalusi (1):
ASoC: dmaengine: Correct Makefile when sound is built as module
Rafael J. Wysocki (1):
ACPI / PNP: Do not crash due to stale pointer use during system resume
Samuel Iglesias Gonsálvez (1):
Staging: ipack/bridges/tpci200: avoid kernel bug when uninstalling a device
Sarah Sharp (1):
xhci: Extend Fresco Logic MSI quirk.
Sarveshwar Bandi (1):
bonding: Bonding driver does not consider the gso_max_size/gso_max_segs setting of slave devices.
Steven Rostedt (2):
ring-buffer: Fix NULL pointer if rb_set_head_page() fails
ring-buffer: Fix race between integrity check and readers
Tejun Heo (1):
workqueue: convert BUG_ON()s in __queue_delayed_work() to WARN_ON_ONCE()s
Tommi Rantala (2):
sctp: fix memory leak in sctp_datamsg_from_user() when copy from user space fails
sctp: fix -ENOMEM result with invalid user space pointer in sendto() syscall
Zhang Rui (1):
ACPI / video: ignore BIOS initial backlight value for HP Folio 13-2000
Zheng Liu (1):
perf test: fix a build error on builtin-test
[email protected] (1):
USB: add new zte 3g-dongle's pid to option.c
[email protected] (1):
bonding: fix race condition in bonding_store_slaves_active
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 6 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Terrified Chipmunk
arch/arm/include/asm/hwcap.h +2 -1
@@ -18,11 +18,12 @@#define HWCAP_THUMBEE (1 << 11)#define HWCAP_NEON (1 << 12)#define HWCAP_VFPv3 (1 << 13) -#define HWCAP_VFPv3D16 (1 << 14) +#define HWCAP_VFPv3D16 (1 << 14)/* also set for VFPv4-D16 */ #define HWCAP_TLS (1 << 15)#define HWCAP_VFPv4 (1 << 16)#define HWCAP_IDIVA (1 << 17)#define HWCAP_IDIVT (1 << 18) +#define HWCAP_VFPD32 (1 << 19)/* set if VFP has 32 regs (not 16) */ #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT)#if defined(__KERNEL__)
arch/arm/include/asm/vfpmacros.h +6 -6
@@ -27,9 +27,9 @@#if __LINUX_ARM_ARCH__ <=6 ldr \tmp, =elf_hwcap @ may not have MVFR regs ldr \tmp, [\tmp, #0] - tst \tmp, #HWCAP_VFPv3D16 - ldceql p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} - addne \base, \base, #32*4 @ step over unused register space + tst \tmp, #HWCAP_VFPD32 + ldcnel p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} + addeq \base, \base, #32*4 @ step over unused register space#else VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field
@@ -51,9 +51,9 @@#if __LINUX_ARM_ARCH__ <=6 ldr \tmp, =elf_hwcap @ may not have MVFR regs ldr \tmp, [\tmp, #0] - tst \tmp, #HWCAP_VFPv3D16 - stceql p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} - addne \base, \base, #32*4 @ step over unused register space + tst \tmp, #HWCAP_VFPD32 + stcnel p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} + addeq \base, \base, #32*4 @ step over unused register space#else VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field
arch/arm/vfp/vfpmodule.c +6 -3
@@ -701,11 +701,14 @@ static int __init vfp_init(void) elf_hwcap |= HWCAP_VFPv3;/* -* Check for VFPv3 D16. CPUs in this configuration -* only have 16 x 64bit registers. +* Check for VFPv3 D16 and VFPv4 D16. CPUs in +* this configuration only have 16 x 64bit +* registers. */ if (((fmrx (MVFR0 ) &MVFR0_A_SIMD_MASK )) ==1 ) - elf_hwcap |= HWCAP_VFPv3D16; + elf_hwcap |= HWCAP_VFPv3D16;/* also v4-D16 */ +else + elf_hwcap |= HWCAP_VFPD32; }#endif /*
arch/powerpc/platforms/pseries/eeh_driver.c +25 -10
@@ -164,17 +164,18 @@ static int eeh_report_error(struct pci_dev *dev, void *userdata)enum pci_ers_result rc, *res = userdata;struct pci_driver *driver; +device_lock (&dev->dev); dev->error_state = pci_channel_io_frozen; driver =eeh_pcid_get (dev); -if (!driver)return 0 ; +if (!driver) goto out;eeh_disable_irq (dev);if (!driver->err_handler || !driver->err_handler->error_detected) {eeh_pcid_put (dev); -return 0 ; + goto out; } rc = driver->err_handler->error_detected (dev, pci_channel_io_frozen);
@@ -184,6 +185,8 @@ static int eeh_report_error(struct pci_dev *dev, void *userdata)if (*res ==PCI_ERS_RESULT_NONE ) *res = rc;eeh_pcid_put (dev); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -201,13 +204,14 @@ static int eeh_report_mmio_enabled(struct pci_dev *dev, void *userdata)enum pci_ers_result rc, *res = userdata;struct pci_driver *driver; +device_lock (&dev->dev); driver =eeh_pcid_get (dev); -if (!driver)return 0 ; +if (!driver) goto out;if (!driver->err_handler || !driver->err_handler->mmio_enabled) {eeh_pcid_put (dev); -return 0 ; + goto out; } rc = driver->err_handler->mmio_enabled (dev);
@@ -217,6 +221,8 @@ static int eeh_report_mmio_enabled(struct pci_dev *dev, void *userdata)if (*res ==PCI_ERS_RESULT_NONE ) *res = rc;eeh_pcid_put (dev); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -235,17 +241,18 @@ static int eeh_report_reset(struct pci_dev *dev, void *userdata)enum pci_ers_result rc, *res = userdata;struct pci_driver *driver; +device_lock (&dev->dev); dev->error_state = pci_channel_io_normal; driver =eeh_pcid_get (dev); -if (!driver)return 0 ; +if (!driver) goto out;eeh_enable_irq (dev);if (!driver->err_handler || !driver->err_handler->slot_reset) {eeh_pcid_put (dev); -return 0 ; + goto out; } rc = driver->err_handler->slot_reset (dev);
@@ -255,6 +262,8 @@ static int eeh_report_reset(struct pci_dev *dev, void *userdata) rc == PCI_ERS_RESULT_NEED_RESET) *res = rc;eeh_pcid_put (dev); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -271,22 +280,25 @@ static int eeh_report_resume(struct pci_dev *dev, void *userdata) {struct pci_driver *driver; +device_lock (&dev->dev); dev->error_state = pci_channel_io_normal; driver =eeh_pcid_get (dev); -if (!driver)return 0 ; +if (!driver) goto out;eeh_enable_irq (dev);if (!driver->err_handler || !driver->err_handler->resume) {eeh_pcid_put (dev); -return 0 ; + goto out; } driver->err_handler->resume (dev);eeh_pcid_put (dev); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -302,22 +314,25 @@ static int eeh_report_failure(struct pci_dev *dev, void *userdata) {struct pci_driver *driver; +device_lock (&dev->dev); dev->error_state = pci_channel_io_perm_failure; driver =eeh_pcid_get (dev); -if (!driver)return 0 ; +if (!driver) goto out;eeh_disable_irq (dev);if (!driver->err_handler || !driver->err_handler->error_detected) {eeh_pcid_put (dev); -return 0 ; + goto out; } driver->err_handler->error_detected (dev, pci_channel_io_perm_failure);eeh_pcid_put (dev); +out: +device_unlock (&dev->dev);return 0 ; }
arch/x86/kernel/hpet.c +2 -2
@@ -434,7 +434,7 @@ void hpet_msi_unmask(struct irq_data *data)/* unmask it */ cfg =hpet_readl (HPET_Tn_CFG (hdev->num)); - cfg |=HPET_TN_FSB ; + cfg |=HPET_TN_ENABLE |HPET_TN_FSB ;hpet_writel (cfg,HPET_Tn_CFG (hdev->num)); }
@@ -445,7 +445,7 @@ void hpet_msi_mask(struct irq_data *data)/* mask it */ cfg =hpet_readl (HPET_Tn_CFG (hdev->num)); - cfg &= ~HPET_TN_FSB ; + cfg &= ~(HPET_TN_ENABLE |HPET_TN_FSB );hpet_writel (cfg,HPET_Tn_CFG (hdev->num)); }
drivers/acpi/battery.c +77 -0
113 lines not on this page · raw message
drivers/acpi/sleep.c +8 -0
@@ -519,6 +519,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = { }, { .callback = init_nvs_nosave, + .ident = "Sony Vaio VPCEB1S1E", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Sony Corporation" ), + DMI_MATCH(DMI_PRODUCT_NAME, "VPCEB1S1E"), + }, + }, + { + .callback = init_nvs_nosave, .ident = "Sony Vaio VGN-FW520F", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
drivers/acpi/video.c +14 -0
@@ -389,6 +389,12 @@ static int __init video_set_bqc_offset(const struct dmi_system_id *d)return 0 ; } +static int video_ignore_initial_backlight (const struct dmi_system_id *d) +{ + use_bios_initial_backlight =0 ; +return 0 ; +} +static struct dmi_system_id video_dmi_table[]__initdata = {/* * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121
@@ -433,6 +439,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720"), }, }, + { + .callback = video_ignore_initial_backlight, + .ident = "HP Folio 13-2000", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13 - 2000 Notebook PC"), + }, + }, {} };
drivers/acpi/video_detect.c +8 -0
@@ -156,6 +156,14 @@ static struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "X360"), }, }, + { + .callback = video_detect_force_vendor, + .ident = "Asus UL30VT", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "UL30VT"), + }, + }, { }, };
drivers/block/floppy.c +3 -2
@@ -4329,6 +4329,7 @@ out_unreg_region: out_unreg_blkdev:unregister_blkdev (FLOPPY_MAJOR ,"fd" ); out_put_disk: +destroy_workqueue (floppy_wq);while (dr--) {del_timer_sync (&motor_off_timer[dr]);if (disks[dr]->queue) {
@@ -4341,7 +4342,6 @@ out_put_disk: }put_disk (disks[dr]); } -destroy_workqueue (floppy_wq);return err; }
@@ -4556,6 +4556,8 @@ static void __exit floppy_module_exit(void)unregister_blkdev (FLOPPY_MAJOR ,"fd" );platform_driver_unregister (&floppy_driver); +destroy_workqueue (floppy_wq); +for (drive =0 ; drive <N_DRIVE ; drive++) {del_timer_sync (&motor_off_timer[drive]);
@@ -4580,7 +4582,6 @@ static void __exit floppy_module_exit(void)cancel_delayed_work_sync (&fd_timeout);cancel_delayed_work_sync (&fd_timer); -destroy_workqueue (floppy_wq);if (atomic_read (&usage_count))floppy_release_irq_and_dma ();
drivers/edac/edac_mc.c +11 -3
@@ -416,10 +416,18 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num, dimm->cschannel = chn;/* Increment csrow location */ - row++; -if (row == tot_csrows) { - row =0 ; +if (layers[0 ].is_virt_csrow) { chn++; +if (chn == tot_channels) { + chn =0 ; + row++; + } + }else { + row++; +if (row == tot_csrows) { + row =0 ; + chn++; + } }/* Increment dimm location */
drivers/edac/i82975x_edac.c +4 -7
@@ -370,10 +370,6 @@ static enum dev_type i82975x_dram_type(void __iomem *mch_window, int rank)static void i82975x_init_csrows (struct mem_ctl_info *mci,struct pci_dev *pdev,void __iomem *mch_window) { -static const char *labels[4 ] = { -"DIMM A1" ,"DIMM A2" , -"DIMM B1" ,"DIMM B2" - };struct csrow_info *csrow;unsigned long last_cumul_size;u8 value;
@@ -423,9 +419,10 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci, dimm = mci->csrows[index]->channels[chan]->dimm; dimm->nr_pages = nr_pages / csrow->nr_channels; -strncpy (csrow->channels[chan]->dimm->label, - labels[(index >>1 ) + (chan *2 )], -EDAC_MC_LABEL_LEN ); + +snprintf (csrow->channels[chan]->dimm->label,EDAC_MC_LABEL_LEN ,"DIMM %c%d" , + (chan ==0 ) ?'A' :'B' , + index); dimm->grain =1 <<7 ;/* 128Byte cache-line resolution */ dimm->dtype =i82975x_dram_type (mch_window, index); dimm->mtype =MEM_DDR2 ;/* I82975x supports only DDR2 */
drivers/gpu/drm/i915/intel_bios.c +2 -9
@@ -500,12 +500,8 @@ parse_edp(struct drm_i915_private *dev_priv, struct bdb_header *bdb) edp =find_section (bdb,BDB_EDP );if (!edp) { -if (SUPPORTS_EDP (dev_priv->dev) && dev_priv->edp.support) { -DRM_DEBUG_KMS ("No eDP BDB found but eDP panel " -"supported, assume %dbpp panel color " -"depth.\n" , - dev_priv->edp.bpp); - } +if (SUPPORTS_EDP (dev_priv->dev) && dev_priv->edp.support) +DRM_DEBUG_KMS ("No eDP BDB found but eDP panel supported.\n" );return ; }
@@ -658,9 +654,6 @@ init_vbt_defaults(struct drm_i915_private *dev_priv) dev_priv->lvds_use_ssc =1 ; dev_priv->lvds_ssc_freq =intel_bios_ssc_frequency (dev,1 );DRM_DEBUG_KMS ("Set default to SSC at %dMHz\n" , dev_priv->lvds_ssc_freq); - -/* eDP data */ - dev_priv->edp.bpp =18 ; }static int __init intel_no_opregion_vbt_callback (const struct dmi_system_id *id)
drivers/gpu/drm/i915/intel_display.c +11 -0
@@ -3791,6 +3791,17 @@ static bool intel_choose_pipe_bpp_dither(struct drm_crtc *crtc, } } +if (intel_encoder->type ==INTEL_OUTPUT_EDP ) { +/* Use VBT settings if we have an eDP panel */ +unsigned int edp_bpc = dev_priv->edp.bpp /3 ; + +if (edp_bpc && edp_bpc < display_bpc) { +DRM_DEBUG_KMS ("clamping display bpc (was %d) to eDP (%d)\n" , display_bpc, edp_bpc); + display_bpc = edp_bpc; + } +continue ; + } +/* * HDMI is either 12 or 8, so if the display lets 10bpc sneak * through, clamp it down. (Note: >12bpc will be caught below.)
drivers/hwmon/fam15h_power.c +4 -0
@@ -31,6 +31,9 @@ MODULE_DESCRIPTION("AMD Family 15h CPU processor power monitor");MODULE_AUTHOR ("Andreas Herrmann <[email protected]>" );MODULE_LICENSE ("GPL" ); +/* Family 16h Northbridge's function 4 PCI ID */ +#define PCI_DEVICE_ID_AMD_16H_NB_F4 0x1534 +/* D18F3 */ #define REG_NORTHBRIDGE_CAP 0xe8
@@ -257,6 +260,7 @@ static void __devexit fam15h_power_remove(struct pci_dev *pdev)static DEFINE_PCI_DEVICE_TABLE (fam15h_power_id_table) = { {PCI_VDEVICE (AMD ,PCI_DEVICE_ID_AMD_15H_NB_F4 ) }, + {PCI_VDEVICE (AMD ,PCI_DEVICE_ID_AMD_16H_NB_F4 ) }, {} };MODULE_DEVICE_TABLE (pci, fam15h_power_id_table);
drivers/input/matrix-keymap.c +3 -0
@@ -23,6 +23,7 @@#include <linux/input.h> #include <linux/of.h> #include <linux/export.h> +#include <linux/module.h> #include <linux/input/matrix_keypad.h> static bool matrix_keypad_map_key(struct input_dev *input_dev,
@@ -161,3 +162,5 @@ int matrix_keypad_build_keymap(const struct matrix_keymap_data *keymap_data,return 0 ; }EXPORT_SYMBOL (matrix_keypad_build_keymap); + +MODULE_LICENSE ("GPL" );
drivers/mmc/host/sh_mmcif.c +2 -6
@@ -1104,7 +1104,6 @@ static irqreturn_t sh_mmcif_irqt(int irq, void *dev_id) {struct sh_mmcif_host *host = dev_id;struct mmc_request *mrq = host->mrq; -struct mmc_data *data = mrq->data;cancel_delayed_work_sync (&host->timeout_work);
@@ -1152,13 +1151,14 @@ static irqreturn_t sh_mmcif_irqt(int irq, void *dev_id)case MMCIF_WAIT_FOR_READ_END :case MMCIF_WAIT_FOR_WRITE_END :if (host->sd_error) - data->error =sh_mmcif_error_manage (host); + mrq->data->error =sh_mmcif_error_manage (host);break ;default :BUG (); }if (host->wait_for !=MMCIF_WAIT_FOR_STOP ) { +struct mmc_data *data = mrq->data;if (!mrq->cmd->error && data && !data->error) data->bytes_xfered = data->blocks * data->blksz;
@@ -1229,10 +1229,6 @@ static irqreturn_t sh_mmcif_intr(int irq, void *dev_id) host->sd_error = true;dev_dbg (&host->pd->dev,"int err state = %08x\n" , state); } -if (host->state ==STATE_IDLE ) { -dev_info (&host->pd->dev,"Spurious IRQ status 0x%x" , state); -return IRQ_HANDLED ; - }if (state & ~(INT_CMD12RBE |INT_CMD12CRE )) {if (!host->dma_active)return IRQ_WAKE_THREAD ;
drivers/net/bonding/bond_main.c +7 -0
@@ -1379,6 +1379,8 @@ static void bond_compute_features(struct bonding *bond)struct net_device *bond_dev = bond->dev;netdev_features_t vlan_features =BOND_VLAN_FEATURES ;unsigned short max_hard_header_len =ETH_HLEN ; +unsigned int gso_max_size =GSO_MAX_SIZE ; +u16 gso_max_segs =GSO_MAX_SEGS ;int i;unsigned int flags, dst_release_flag =IFF_XMIT_DST_RELEASE ;
@@ -1394,11 +1396,16 @@ static void bond_compute_features(struct bonding *bond) dst_release_flag &= slave->dev->priv_flags;if (slave->dev->hard_header_len > max_hard_header_len) max_hard_header_len = slave->dev->hard_header_len; + + gso_max_size =min (gso_max_size, slave->dev->gso_max_size); + gso_max_segs =min (gso_max_segs, slave->dev->gso_max_segs); } done: bond_dev->vlan_features = vlan_features; bond_dev->hard_header_len = max_hard_header_len; + bond_dev->gso_max_segs = gso_max_segs; +netif_set_gso_max_size (bond_dev, gso_max_size); flags = bond_dev->priv_flags & ~IFF_XMIT_DST_RELEASE ; bond_dev->priv_flags = flags | dst_release_flag;
drivers/net/bonding/bond_sysfs.c +2 -0
@@ -1582,6 +1582,7 @@ static ssize_t bonding_store_slaves_active(struct device *d, goto out; } +read_lock (&bond->lock);bond_for_each_slave (bond, slave, i) {if (!bond_is_active_slave (slave)) {if (new_value)
@@ -1590,6 +1591,7 @@ static ssize_t bonding_store_slaves_active(struct device *d, slave->inactive =1 ; } } +read_unlock (&bond->lock); out:return ret; }
drivers/net/ethernet/8390/ne.c +1 -0
@@ -813,6 +813,7 @@ static int __init ne_drv_probe(struct platform_device *pdev) dev->irq = irq[this_dev]; dev->mem_end = bad[this_dev]; } +SET_NETDEV_DEV (dev, &pdev->dev); err =do_ne_probe (dev);if (err) {free_netdev (dev);
drivers/net/ethernet/sis/sis900.c +1 -1
@@ -2477,7 +2477,7 @@ static int sis900_resume(struct pci_dev *pci_dev)netif_start_queue (net_dev);/* Workaround for EDB */ -sis900_set_mode (ioaddr,HW_SPEED_10_MBPS ,FDX_CAPABLE_HALF_SELECTED ); +sis900_set_mode (sis_priv,HW_SPEED_10_MBPS ,FDX_CAPABLE_HALF_SELECTED );/* Enable all known interrupts by setting the interrupt mask. */ sw32 (imr, RxSOVR | RxORN | RxERR | RxOK | TxURN | TxERR | TxIDLE);
drivers/net/irda/sir_dev.c +1 -1
@@ -222,7 +222,7 @@ static void sirdev_config_fsm(struct work_struct *work)break ;case SIRDEV_STATE_DONGLE_SPEED : -if (dev->dongle_drv->reset) { +if (dev->dongle_drv->set_speed) { ret = dev->dongle_drv->set_speed (dev, fsm->param);if (ret <0 ) { fsm->result = ret;
drivers/net/usb/cdc_ncm.c +18 -4
@@ -540,10 +540,12 @@ advance: (ctx->ether_desc == NULL) || (ctx->control != intf)) goto error; -/* claim interfaces, if any */ - temp =usb_driver_claim_interface (driver, ctx->data, dev); -if (temp) - goto error; +/* claim data interface, if different from control */ +if (ctx->data != ctx->control) { + temp =usb_driver_claim_interface (driver, ctx->data, dev); +if (temp) + goto error; + } iface_no = ctx->data->cur_altsetting->desc.bInterfaceNumber;
@@ -623,6 +625,10 @@ static void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf)tasklet_kill (&ctx->bh); +/* handle devices with combined control and data interface */ +if (ctx->control == ctx->data) + ctx->data =NULL ; +/* disconnect master --> disconnect slave */ if (intf == ctx->control && ctx->data) {usb_set_intfdata (ctx->data,NULL );
@@ -1245,6 +1251,14 @@ static const struct usb_device_id cdc_devs[] = { .driver_info = (unsigned long) &wwan_info, }, +/* Huawei NCM devices disguised as vendor specific */ + { USB_VENDOR_AND_INTERFACE_INFO(0x12d1, 0xff, 0x02, 0x16), + .driver_info = (unsigned long )&wwan_info, + }, + { USB_VENDOR_AND_INTERFACE_INFO(0x12d1, 0xff, 0x02, 0x46), + .driver_info = (unsigned long)&wwan_info, + }, + /* Generic CDC-NCM devices */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_NCM, USB_CDC_PROTO_NONE),
drivers/net/usb/ipheth.c +5 -0
@@ -62,6 +62,7 @@#define USB_PRODUCT_IPAD 0x129a#define USB_PRODUCT_IPHONE_4_VZW 0x129c#define USB_PRODUCT_IPHONE_4S 0x12a0 +#define USB_PRODUCT_IPHONE_5 0x12a8#define IPHETH_USBINTF_CLASS 255#define IPHETH_USBINTF_SUBCLASS 253
@@ -113,6 +114,10 @@ static struct usb_device_id ipheth_table[] = { USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S,IPHETH_USBINTF_CLASS ,IPHETH_USBINTF_SUBCLASS , IPHETH_USBINTF_PROTO) }, + { USB_DEVICE_AND_INTERFACE_INFO( +USB_VENDOR_APPLE ,USB_PRODUCT_IPHONE_5 , +IPHETH_USBINTF_CLASS ,IPHETH_USBINTF_SUBCLASS , + IPHETH_USBINTF_PROTO) }, { } };MODULE_DEVICE_TABLE (usb, ipheth_table);
drivers/pci/bus.c +0 -3
@@ -316,10 +316,7 @@ void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), }else next = dev->bus_list.next; -/* Run device routines with the device locked */ -device_lock (&dev->dev); retval =cb (dev, userdata); -device_unlock (&dev->dev);if (retval)break ; }
drivers/pci/pcie/aer/aerdrv_core.c +16 -4
@@ -244,6 +244,7 @@ static int report_error_detected(struct pci_dev *dev, void *data)struct aer_broadcast_data *result_data; result_data = (struct aer_broadcast_data *) data; +device_lock (&dev->dev); dev->error_state = result_data->state; if (!dev->driver ||
@@ -262,12 +263,14 @@ static int report_error_detected(struct pci_dev *dev, void *data) dev->driver ? "no AER-aware driver" : "no driver"); } -return 0 ; + goto out; } err_handler = dev->driver->err_handler; vote = err_handler->error_detected (dev, result_data->state); result_data->result =merge_result (result_data->result, vote); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -278,14 +281,17 @@ static int report_mmio_enabled(struct pci_dev *dev, void *data)struct aer_broadcast_data *result_data; result_data = (struct aer_broadcast_data *) data; +device_lock (&dev->dev);if (!dev->driver || !dev->driver->err_handler || !dev->driver->err_handler->mmio_enabled) -return 0 ; + goto out; err_handler = dev->driver->err_handler; vote = err_handler->mmio_enabled (dev); result_data->result =merge_result (result_data->result, vote); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -296,14 +302,17 @@ static int report_slot_reset(struct pci_dev *dev, void *data)struct aer_broadcast_data *result_data; result_data = (struct aer_broadcast_data *) data; +device_lock (&dev->dev);if (!dev->driver || !dev->driver->err_handler || !dev->driver->err_handler->slot_reset) -return 0 ; + goto out; err_handler = dev->driver->err_handler; vote = err_handler->slot_reset (dev); result_data->result =merge_result (result_data->result, vote); +out: +device_unlock (&dev->dev);return 0 ; }
@@ -311,15 +320,18 @@ static int report_resume(struct pci_dev *dev, void *data) {struct pci_error_handlers *err_handler; +device_lock (&dev->dev); dev->error_state = pci_channel_io_normal;if (!dev->driver || !dev->driver->err_handler || !dev->driver->err_handler->resume) -return 0 ; + goto out; err_handler = dev->driver->err_handler; err_handler->resume (dev); +out: +device_unlock (&dev->dev);return 0 ; }
drivers/pnp/pnpacpi/core.c +3 -0
@@ -95,6 +95,9 @@ static int pnpacpi_set_resources(struct pnp_dev *dev)return -ENODEV ; } +if (WARN_ON_ONCE (acpi_dev != dev->data)) + dev->data = acpi_dev; + ret =pnpacpi_build_resource_template (dev, &buffer);if (ret)return ret;
drivers/staging/ipack/bridges/tpci200.c +1 -1
@@ -604,8 +604,8 @@ static int tpci200_slot_unregister(struct ipack_device *dev)if (mutex_lock_interruptible (&tpci200->mutex))return -ERESTARTSYS ; -ipack_device_unregister (dev); tpci200->slots[dev->slot].dev =NULL ; +ipack_device_unregister (dev);mutex_unlock (&tpci200->mutex);return 0 ;
drivers/usb/class/cdc-acm.c +38 -0
@@ -788,6 +788,10 @@ static int get_serial_info(struct acm *acm, struct serial_struct __user *info) tmp.flags =ASYNC_LOW_LATENCY ; tmp.xmit_fifo_size = acm->writesize; tmp.baud_base =le32_to_cpu (acm->line.dwDTERate); + tmp.close_delay = acm->port.close_delay /10 ; + tmp.closing_wait = acm->port.closing_wait ==ASYNC_CLOSING_WAIT_NONE ? +ASYNC_CLOSING_WAIT_NONE : + acm->port.closing_wait /10 ;if (copy_to_user (info, &tmp,sizeof (tmp)))return -EFAULT ;
@@ -795,6 +799,37 @@ static int get_serial_info(struct acm *acm, struct serial_struct __user *info)return 0 ; } +static int set_serial_info (struct acm *acm, +struct serial_struct __user *newinfo) +{ +struct serial_struct new_serial; +unsigned int closing_wait, close_delay; +int retval =0 ; + +if (copy_from_user (&new_serial, newinfo,sizeof (new_serial))) +return -EFAULT ; + + close_delay = new_serial.close_delay *10 ; + closing_wait = new_serial.closing_wait ==ASYNC_CLOSING_WAIT_NONE ? +ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait *10 ; + +mutex_lock (&acm->port.mutex); + +if (!capable (CAP_SYS_ADMIN )) { +if ((close_delay != acm->port.close_delay) || + (closing_wait != acm->port.closing_wait)) + retval = -EPERM ; +else + retval = -EOPNOTSUPP ; + }else { + acm->port.close_delay = close_delay; + acm->port.closing_wait = closing_wait; + } + +mutex_unlock (&acm->port.mutex); +return retval; +} +static int acm_tty_ioctl (struct tty_struct *tty,unsigned int cmd,unsigned long arg) {
@@ -805,6 +840,9 @@ static int acm_tty_ioctl(struct tty_struct *tty,case TIOCGSERIAL :/* gets serial port data */ rv =get_serial_info (acm, (struct serial_struct __user *) arg);break ; +case TIOCSSERIAL : + rv =set_serial_info (acm, (struct serial_struct __user *) arg); +break ; }return rv;
drivers/usb/host/ehci-q.c +3 -9
@@ -264,15 +264,9 @@ ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) __releases(ehci->lock) __acquires(ehci->lock) { -if (likely (urb->hcpriv !=NULL )) { -struct ehci_qh *qh = (struct ehci_qh *) urb->hcpriv; - -/* S-mask in a QH means it's an interrupt urb */ -if ((qh->hw->hw_info2 &cpu_to_hc32 (ehci,QH_SMASK )) !=0 ) { - -/* ... update hc-wide periodic stats (for usbfs) */ -ehci_to_hcd (ehci)->self.bandwidth_int_reqs--; - } +if (usb_pipetype (urb->pipe) ==PIPE_INTERRUPT ) { +/* ... update hc-wide periodic stats */ +ehci_to_hcd (ehci)->self.bandwidth_int_reqs--; }if (unlikely (urb->unlinked)) {
drivers/usb/host/ehci-sched.c +2 -2
@@ -1646,7 +1646,7 @@ static void itd_link_urb(/* don't need that schedule data any more */ iso_sched_free (stream, iso_sched); - urb->hcpriv =NULL ; + urb->hcpriv = stream; ++ehci->isoc_count;enable_periodic (ehci);
@@ -2045,7 +2045,7 @@ static void sitd_link_urb(/* don't need that schedule data any more */ iso_sched_free (stream, sched); - urb->hcpriv =NULL ; + urb->hcpriv = stream; ++ehci->isoc_count;enable_periodic (ehci);
drivers/usb/host/ohci-q.c +19 -0
@@ -1128,6 +1128,25 @@ dl_done_list (struct ohci_hcd *ohci)while (td) {struct td *td_next = td->next_dl_td; +struct ed *ed = td->ed; + +/* +* Some OHCI controllers (NVIDIA for sure, maybe others) +* occasionally forget to add TDs to the done queue. Since +* TDs for a given endpoint are always processed in order, +* if we find a TD on the donelist then all of its +* predecessors must be finished as well. +*/ +for (;;) { +struct td *td2; + + td2 = list_first_entry(&ed->td_list, struct td, + td_list); +if (td2 == td) +break ; +takeback_td (ohci, td2); + } +takeback_td (ohci, td); td = td_next; }
drivers/usb/host/xhci-pci.c +5 -2
@@ -29,6 +29,7 @@/* Device for a quirk */ #define PCI_VENDOR_ID_FRESCO_LOGIC 0x1b73#define PCI_DEVICE_ID_FRESCO_LOGIC_PDK 0x1000 +#define PCI_DEVICE_ID_FRESCO_LOGIC_FL1400 0x1400#define PCI_VENDOR_ID_ETRON 0x1b6f#define PCI_DEVICE_ID_ASROCK_P67 0x7023
@@ -58,8 +59,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)/* Look for vendor-specific quirks */ if (pdev->vendor ==PCI_VENDOR_ID_FRESCO_LOGIC && - pdev->device ==PCI_DEVICE_ID_FRESCO_LOGIC_PDK ) { -if (pdev->revision ==0x0 ) { + (pdev->device ==PCI_DEVICE_ID_FRESCO_LOGIC_PDK || + pdev->device ==PCI_DEVICE_ID_FRESCO_LOGIC_FL1400 )) { +if (pdev->device ==PCI_DEVICE_ID_FRESCO_LOGIC_PDK && + pdev->revision ==0x0 ) { xhci->quirks |=XHCI_RESET_EP_QUIRK ;xhci_dbg (xhci,"QUIRK: Fresco Logic xHC needs configure" " endpoint cmd after reset endpoint\n" );
drivers/usb/serial/cp210x.c +1 -0
@@ -120,6 +120,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */ { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */ { USB_DEVICE(0x10C4, 0x85EB) }, /* AC-Services CIS-IBUS */ + { USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */ { USB_DEVICE(0x10C4, 0x8664) }, /* AC-Services CAN-IF */ { USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */ { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
drivers/usb/serial/ftdi_sio.c +2 -1
@@ -197,6 +197,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_THROTTLE_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GATEWAY_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_PID) }, + { USB_DEVICE(NEWPORT_VID, NEWPORT_AGILIS_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) },
@@ -1787,7 +1788,7 @@ static int ftdi_8u2232c_probe(struct usb_serial *serial)struct usb_device *udev = serial->dev;if ((udev->manufacturer && !strcmp (udev->manufacturer,"CALAO Systems" )) || - (udev->product && !strcmp (udev->product,"BeagleBone/XDS100" ))) + (udev->product && !strcmp (udev->product,"BeagleBone/XDS100V2" )))return ftdi_jtag_probe (serial);return 0 ;
drivers/usb/serial/ftdi_sio_ids.h +6 -0
@@ -752,6 +752,12 @@#define TTI_VID 0x103E/* Vendor Id */ #define TTI_QL355P_PID 0x03E8/* TTi QL355P power supply */ +/* +* Newport Cooperation (www.newport.com) +*/ +#define NEWPORT_VID 0x104D +#define NEWPORT_AGILIS_PID 0x3000 +/* Interbiometrics USB I/O Board */ /* Developed for Interbiometrics by Rudolf Gugler */ #define INTERBIOMETRICS_VID 0x1209
drivers/usb/serial/option.c +25 -0
@@ -81,6 +81,7 @@ static void option_instat_callback(struct urb *urb);#define OPTION_PRODUCT_GTM380_MODEM 0x7201#define HUAWEI_VENDOR_ID 0x12D1 +#define HUAWEI_PRODUCT_E173 0x140C#define HUAWEI_PRODUCT_K4505 0x1464#define HUAWEI_PRODUCT_K3765 0x1465#define HUAWEI_PRODUCT_K4605 0x14C6
@@ -553,6 +554,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLX) }, { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GKE) }, { USB_DEVICE(QUANTA_VENDOR_ID, QUANTA_PRODUCT_GLE) }, + { 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_K4505, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t) &huawei_cdc12_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3765, 0xff, 0xff, 0xff),
@@ -884,6 +887,10 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0126, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf5_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0128, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0135, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0136, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0137, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0139, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0142, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0143, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0144, 0xff, 0xff, 0xff) },
@@ -904,20 +911,34 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0165, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0167, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0189, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0191, 0xff, 0xff, 0xff), /* ZTE EuFi890 */ .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0196, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0197, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0199, 0xff, 0xff, 0xff), /* ZTE MF820S */ .driver_info = (kernel_ulong_t)&net_intf1_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0200, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0201, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0254, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0257, 0xff, 0xff, 0xff), /* ZTE MF821 */ .driver_info = (kernel_ulong_t)&net_intf3_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0265, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0284, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0317, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0326, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0330, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0395, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0414, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0417, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1008, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1010, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1012, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1018, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1021, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1057, 0xff, 0xff, 0xff) },
@@ -1097,6 +1118,10 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1298, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1299, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1300, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1301, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1302, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1303, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1333, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1401, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1402, 0xff, 0xff, 0xff),
drivers/usb/storage/Kconfig +1 -1
@@ -203,7 +203,7 @@ config USB_STORAGE_ENE_UB6250 config USB_UAS tristate "USB Attached SCSI" - depends on USB && SCSI + depends on USB && SCSI && BROKEN help The USB Attached SCSI protocol is supported by some USB storage devices. It permits higher performance by supporting
include/linux/mempolicy.h +0 -16
@@ -137,16 +137,6 @@ static inline void mpol_cond_put(struct mempolicy *pol)__mpol_put (pol); } -extern struct mempolicy *__mpol_cond_copy (struct mempolicy *tompol, -struct mempolicy *frompol); -static inline struct mempolicy *mpol_cond_copy (struct mempolicy *tompol, -struct mempolicy *frompol) -{ -if (!frompol) -return frompol; -return __mpol_cond_copy (tompol, frompol); -} -extern struct mempolicy *__mpol_dup (struct mempolicy *pol);static inline struct mempolicy *mpol_dup (struct mempolicy *pol) {
@@ -270,12 +260,6 @@ static inline void mpol_cond_put(struct mempolicy *pol) { } -static inline struct mempolicy *mpol_cond_copy (struct mempolicy *to, -struct mempolicy *from) -{ -return from; -} -static inline void mpol_get (struct mempolicy *pol) { }
kernel/rcutree.c +8 -7
@@ -212,13 +212,13 @@ DEFINE_PER_CPU(struct rcu_dynticks, rcu_dynticks) = { .dynticks = ATOMIC_INIT(1), }; -static int blimit =10 ;/* Maximum callbacks per rcu_do_batch. */ -static int qhimark =10000 ;/* If this many pending, ignore blimit. */ -static int qlowmark =100 ;/* Once only this many pending, use blimit. */ +static long blimit =10 ;/* Maximum callbacks per rcu_do_batch. */ +static long qhimark =10000 ;/* If this many pending, ignore blimit. */ +static long qlowmark =100 ;/* Once only this many pending, use blimit. */ -module_param (blimit, int,0 ); -module_param (qhimark, int,0 ); -module_param (qlowmark, int,0 ); +module_param (blimit, long,0 ); +module_param (qhimark, long,0 ); +module_param (qlowmark, long,0 );int rcu_cpu_stall_suppress__read_mostly ;/* 1 = suppress stall warnings. */ int rcu_cpu_stall_timeout__read_mostly =CONFIG_RCU_CPU_STALL_TIMEOUT ;
@@ -1543,7 +1543,8 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp) {unsigned long flags;struct rcu_head *next, *list, **tail; -int bl, count, count_lazy, i; +long bl, count, count_lazy; +int i;/* If no callbacks are ready, just return.*/ if (!cpu_has_callbacks_ready_to_invoke (rdp)) {
kernel/trace/ftrace.c +1 -1
@@ -2358,7 +2358,7 @@ static void reset_iter_read(struct ftrace_iterator *iter) { iter->pos =0 ; iter->func_pos =0 ; - iter->flags &= ~(FTRACE_ITER_PRINTALL &FTRACE_ITER_HASH ); + iter->flags &= ~(FTRACE_ITER_PRINTALL |FTRACE_ITER_HASH ); }static void *t_start (struct seq_file *m,loff_t *pos)
kernel/trace/ring_buffer.c +13 -3
@@ -1396,6 +1396,8 @@ rb_insert_pages(struct ring_buffer_per_cpu *cpu_buffer)struct list_head *head_page_with_bit; head_page = &rb_set_head_page (cpu_buffer)->list; +if (!head_page) +break ; prev_page = head_page->prev; first_page = pages->next;
@@ -2934,7 +2936,7 @@ unsigned long ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu)unsigned long flags;struct ring_buffer_per_cpu *cpu_buffer;struct buffer_page *bpage; -unsigned long ret; +unsigned long ret =0 ;if (!cpumask_test_cpu (cpu, buffer->cpumask))return 0 ;
@@ -2949,7 +2951,8 @@ unsigned long ring_buffer_oldest_event_ts(struct ring_buffer *buffer, int cpu) bpage = cpu_buffer->reader_page; else bpage =rb_set_head_page (cpu_buffer); - ret = bpage->page->time_stamp; +if (bpage) + ret = bpage->page->time_stamp;raw_spin_unlock_irqrestore (&cpu_buffer->reader_lock, flags);return ret;
@@ -3260,6 +3263,8 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)* Splice the empty reader page into the list around the head. */ reader =rb_set_head_page (cpu_buffer); +if (!reader) + goto out; cpu_buffer->reader_page->list.next =rb_list_head (reader->list.next); cpu_buffer->reader_page->list.prev = reader->list.prev;
@@ -3778,12 +3783,17 @@ void ring_buffer_read_finish(struct ring_buffer_iter *iter) {struct ring_buffer_per_cpu *cpu_buffer = iter->cpu_buffer; +unsigned long flags;/* * Ring buffer is disabled from recording, here's a good place -* to check the integrity of the ring buffer. +* to check the integrity of the ring buffer. +* Must prevent readers from trying to read, as the check +* clears the HEAD page and readers require it. */ +raw_spin_lock_irqsave (&cpu_buffer->reader_lock, flags);rb_check_pages (cpu_buffer); +raw_spin_unlock_irqrestore (&cpu_buffer->reader_lock, flags);atomic_dec (&cpu_buffer->record_disabled);atomic_dec (&cpu_buffer->buffer->resize_disabled);
kernel/workqueue.c +2 -2
@@ -1143,8 +1143,8 @@ int queue_delayed_work_on(int cpu, struct workqueue_struct *wq,if (!test_and_set_bit (WORK_STRUCT_PENDING_BIT ,work_data_bits (work))) {unsigned int lcpu; -BUG_ON (timer_pending (timer)); -BUG_ON (!list_empty (&work->entry)); +WARN_ON_ONCE (timer_pending (timer)); +WARN_ON_ONCE (!list_empty (&work->entry));timer_stats_timer_set_start_info (&dwork->timer);
mm/dmapool.c +7 -24
@@ -50,7 +50,6 @@ struct dma_pool { /* the pool */size_t allocation;size_t boundary;char name[32 ]; -wait_queue_head_t waitq;struct list_head pools; };
@@ -62,8 +61,6 @@ struct dma_page { /* cacheable header for 'allocation' bytes */unsigned int offset; }; -#define POOL_TIMEOUT_JIFFIES ((100 /* msec */ * HZ) / 1000) -static DEFINE_MUTEX (pools_lock); static ssize_t
@@ -172,7 +169,6 @@ struct dma_pool *dma_pool_create(const char *name, struct device *dev, retval->size = size; retval->boundary = boundary; retval->allocation = allocation; -init_waitqueue_head (&retval->waitq);if (dev) {int ret;
@@ -227,7 +223,6 @@ static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags)memset (page->vaddr,POOL_POISON_FREED , pool->allocation);#endif pool_initialise_page (pool, page); -list_add (&page->page_list, &pool->page_list); page->in_use =0 ; page->offset =0 ; }else {
@@ -315,30 +310,21 @@ void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags,might_sleep_if (mem_flags & __GFP_WAIT);spin_lock_irqsave (&pool->lock, flags); - restart:list_for_each_entry (page, &pool->page_list, page_list) {if (page->offset < pool->allocation) goto ready; } - page =pool_alloc_page (pool,GFP_ATOMIC ); -if (!page) { -if (mem_flags & __GFP_WAIT) { -DECLARE_WAITQUEUE (wait, current); -__set_current_state (TASK_UNINTERRUPTIBLE ); -__add_wait_queue (&pool->waitq, &wait); -spin_unlock_irqrestore (&pool->lock, flags); +/* pool_alloc_page() might sleep, so temporarily drop &pool->lock */ +spin_unlock_irqrestore (&pool->lock, flags); -schedule_timeout (POOL_TIMEOUT_JIFFIES ); + page =pool_alloc_page (pool, mem_flags); +if (!page) +return NULL ; -spin_lock_irqsave (&pool->lock, flags); -__remove_wait_queue (&pool->waitq, &wait); - goto restart; - } - retval =NULL ; - goto done; - } +spin_lock_irqsave (&pool->lock, flags); +list_add (&page->page_list, &pool->page_list); ready: page->in_use++; offset = page->offset;
@@ -348,7 +334,6 @@ void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags,#ifdef DMAPOOL_DEBUG memset (retval,POOL_POISON_ALLOCATED , pool->size);#endif - done:spin_unlock_irqrestore (&pool->lock, flags);return retval; }
@@ -435,8 +420,6 @@ void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) page->in_use--; *(int *)vaddr = page->offset; page->offset = offset; -if (waitqueue_active (&pool->waitq)) -wake_up_locked (&pool->waitq);/* * Resist a temptation to do * if (!is_page_busy(page)) pool_free_page(pool, page);
mm/mempolicy.c +0 -22
@@ -2035,28 +2035,6 @@ struct mempolicy *__mpol_dup(struct mempolicy *old)return new; } -/* -* If *frompol needs [has] an extra ref, copy *frompol to *tompol , -* eliminate the * MPOL_F_* flags that require conditional ref and -* [NOTE!!!] drop the extra ref. Not safe to reference *frompol directly -* after return. Use the returned value. -* -* Allows use of a mempolicy for, e.g., multiple allocations with a single -* policy lookup, even if the policy needs/has extra ref on lookup. -* shmem_readahead needs this. -*/ -struct mempolicy *__mpol_cond_copy (struct mempolicy *tompol, -struct mempolicy *frompol) -{ -if (!mpol_needs_cond_ref (frompol)) -return frompol; - - *tompol = *frompol; - tompol->flags &= ~MPOL_F_SHARED ;/* copy doesn't need unref */ -__mpol_put (frompol); -return tompol; -} -/* Slow path of a mempolicy comparison */ bool __mpol_equal (struct mempolicy *a,struct mempolicy *b) {
mm/shmem.c +16 -10
@@ -921,25 +921,29 @@ static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo)static struct page *shmem_swapin (swp_entry_t swap,gfp_t gfp,struct shmem_inode_info *info,pgoff_t index) { -struct mempolicy mpol, *spol;struct vm_area_struct pvma; - - spol =mpol_cond_copy (&mpol, -mpol_shared_policy_lookup (&info->policy, index)); +struct page *page;/* Create a pseudo vma that just contains the policy */ pvma.vm_start =0 ;/* Bias interleave by inode number to distribute better across nodes */ pvma.vm_pgoff = index + info->vfs_inode.i_ino; pvma.vm_ops =NULL ; - pvma.vm_policy = spol; -return swapin_readahead (swap, gfp, &pvma,0 ); + pvma.vm_policy =mpol_shared_policy_lookup (&info->policy, index); + + page =swapin_readahead (swap, gfp, &pvma,0 ); + +/* Drop reference taken by mpol_shared_policy_lookup() */ +mpol_cond_put (pvma.vm_policy); + +return page; }static struct page *shmem_alloc_page (gfp_t gfp,struct shmem_inode_info *info,pgoff_t index) {struct vm_area_struct pvma; +struct page *page;/* Create a pseudo vma that just contains the policy */ pvma.vm_start =0 ;
@@ -948,10 +952,12 @@ static struct page *shmem_alloc_page(gfp_t gfp, pvma.vm_ops =NULL ; pvma.vm_policy =mpol_shared_policy_lookup (&info->policy, index); -/* -* alloc_page_vma() will drop the shared policy reference -*/ - return alloc_page_vma(gfp, &pvma, 0); + page =alloc_page_vma (gfp, &pvma,0 ); + +/* Drop reference taken by mpol_shared_policy_lookup() */ +mpol_cond_put (pvma.vm_policy); + + return page; }#else /* !CONFIG_NUMA */ #ifdef CONFIG_TMPFS
net/ipv4/icmp.c +2 -1
@@ -257,7 +257,8 @@ static inline bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt,struct inet_peer *peer =inet_getpeer_v4 (net->ipv4.peers, fl4->daddr,1 ); rc =inet_peer_xrlim_allow (peer, net->ipv4.sysctl_icmp_ratelimit); -inet_putpeer (peer); +if (peer) +inet_putpeer (peer); } out:return rc;
net/ipv4/inet_diag.c +122 -32
220 lines not on this page · raw message
net/ipv4/ip_fragment.c +9 -10
@@ -702,28 +702,27 @@ EXPORT_SYMBOL(ip_defrag);struct sk_buff *ip_check_defrag (struct sk_buff *skb,u32 user) { -const struct iphdr *iph; +struct iphdr iph;u32 len;if (skb->protocol !=htons (ETH_P_IP ))return skb; -if (!pskb_may_pull (skb,sizeof (struct iphdr ))) +if (!skb_copy_bits (skb,0 , &iph,sizeof (iph)))return skb; - iph =ip_hdr (skb); -if (iph->ihl <5 || iph->version !=4 ) +if (iph.ihl <5 || iph.version !=4 )return skb; -if (!pskb_may_pull (skb, iph->ihl*4 )) -return skb; - iph =ip_hdr (skb); - len =ntohs (iph->tot_len); -if (skb->len < len || len < (iph->ihl *4 )) + + len =ntohs (iph.tot_len); +if (skb->len < len || len < (iph.ihl *4 ))return skb; -if (ip_is_fragment (ip_hdr (skb))) { +if (ip_is_fragment (&iph)) { skb =skb_share_check (skb,GFP_ATOMIC );if (skb) { +if (!pskb_may_pull (skb, iph.ihl*4 )) +return skb;if (pskb_trim_rcsum (skb, len))return skb;memset (IPCB (skb),0 ,sizeof (struct inet_skb_parm ));
net/ipv4/route.c +5 -2
@@ -1785,6 +1785,7 @@ static struct rtable *__mkroute_output(const struct fib_result *res,if (dev_out->flags &IFF_LOOPBACK ) flags |=RTCF_LOCAL ; + do_cache = true;if (type ==RTN_BROADCAST ) { flags |=RTCF_BROADCAST |RTCF_LOCAL ; fi =NULL ;
@@ -1793,6 +1794,8 @@ static struct rtable *__mkroute_output(const struct fib_result *res,if (!ip_check_mc_rcu (in_dev, fl4->daddr, fl4->saddr, fl4->flowi4_proto)) flags &= ~RTCF_LOCAL ; +else + do_cache = false;/* If multicast route do not exist use * default one, but do not gateway in this case. * Yes, it is hack.
@@ -1802,8 +1805,8 @@ static struct rtable *__mkroute_output(const struct fib_result *res, } fnhe =NULL ; - do_cache = fi !=NULL ; -if (fi) { + do_cache &= fi !=NULL ; +if (do_cache) {struct rtable __rcu **prth;struct fib_nh *nh = &FIB_RES_NH (*res);
net/ipv6/inet6_connection_sock.c +2 -1
@@ -252,6 +252,7 @@ struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu)return NULL ; dst->ops->update_pmtu (dst, sk,NULL , mtu); -return inet6_csk_route_socket (sk, &fl6); + dst =inet6_csk_route_socket (sk, &fl6); +return IS_ERR (dst) ?NULL : dst; }EXPORT_SYMBOL_GPL (inet6_csk_update_pmtu);
net/sctp/chunk.c +14 -6
@@ -183,7 +183,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, msg =sctp_datamsg_new (GFP_KERNEL );if (!msg) -return NULL ; +return ERR_PTR (-ENOMEM );/* Note: Calculate this outside of the loop, so that all fragments * have the same expiration.
@@ -280,11 +280,14 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, chunk =sctp_make_datafrag_empty (asoc, sinfo, len, frag,0 ); -if (!chunk) +if (!chunk) { + err = -ENOMEM ; goto errout; + } + err =sctp_user_addto_chunk (chunk, offset, len, msgh->msg_iov);if (err <0 ) - goto errout; + goto errout_chunk_free; offset += len;
@@ -315,8 +318,10 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, chunk =sctp_make_datafrag_empty (asoc, sinfo, over, frag,0 ); -if (!chunk) +if (!chunk) { + err = -ENOMEM ; goto errout; + } err =sctp_user_addto_chunk (chunk, offset, over,msgh->msg_iov);
@@ -324,7 +329,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,__skb_pull (chunk->skb, (__u8 *)chunk->chunk_hdr - (__u8 *)chunk->skb->data);if (err <0 ) - goto errout; + goto errout_chunk_free;sctp_datamsg_assign (msg, chunk);list_add_tail (&chunk->frag_list, &msg->chunks);
@@ -332,6 +337,9 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,return msg; +errout_chunk_free: +sctp_chunk_free (chunk); + errout:list_for_each_safe (pos, temp, &msg->chunks) {list_del_init (pos);
@@ -339,7 +347,7 @@ errout:sctp_chunk_free (chunk); }sctp_datamsg_put (msg); -return NULL ; +return ERR_PTR (err); }/* Check whether this message has expired. */
net/sctp/socket.c +2 -2
@@ -1908,8 +1908,8 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,/* Break the message into multiple chunks of maximum size. */ datamsg =sctp_datamsg_from_user (asoc, sinfo, msg, msg_len); -if (!datamsg) { - err = -ENOMEM ; +if (IS_ERR (datamsg)) { + err =PTR_ERR (datamsg); goto out_free; }
sound/soc/Makefile +3 -2
@@ -1,8 +1,9 @@ snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o snd-soc-core-objs += soc-pcm.o soc-io.o -snd-soc-dmaengine-pcm-objs := soc-dmaengine-pcm.o -obj-$(CONFIG_SND_SOC_DMAENGINE_PCM) += snd-soc-dmaengine-pcm.o +ifneq ($(CONFIG_SND_SOC_DMAENGINE_PCM),) +snd-soc-core-objs += soc-dmaengine-pcm.o +endif obj-$(CONFIG_SND_SOC) += snd-soc-core.o obj-$(CONFIG_SND_SOC) += codecs/
tools/perf/builtin-test.c +12 -26
@@ -602,19 +602,13 @@ out_free_threads:#undef nsyscalls } -static int sched__get_first_possible_cpu (pid_t pid,cpu_set_t **maskp, -size_t *sizep) +static int sched__get_first_possible_cpu (pid_t pid,cpu_set_t *maskp) { -cpu_set_t *mask; -size_t size;int i, cpu =-1 , nrcpus =1024 ; realloc: - mask =CPU_ALLOC (nrcpus); - size =CPU_ALLOC_SIZE (nrcpus); -CPU_ZERO_S (size, mask); +CPU_ZERO (maskp); -if (sched_getaffinity (pid, size, mask) ==-1 ) { -CPU_FREE (mask); +if (sched_getaffinity (pid,sizeof (*maskp), maskp) ==-1 ) {if (errno ==EINVAL && nrcpus < (1024 <<8 )) { nrcpus = nrcpus <<2 ; goto realloc;
@@ -624,19 +618,14 @@ realloc: }for (i =0 ; i < nrcpus; i++) { -if (CPU_ISSET_S (i, size, mask)) { -if (cpu ==-1 ) { +if (CPU_ISSET (i, maskp)) { +if (cpu ==-1 ) cpu = i; - *maskp = mask; - *sizep = size; - }else -CPU_CLR_S (i, size, mask); +else +CPU_CLR (i, maskp); } } -if (cpu ==-1 ) -CPU_FREE (mask); -return cpu; }
@@ -651,8 +640,8 @@ static int test__PERF_RECORD(void) .freq = 10, .mmap_pages = 256, }; -cpu_set_t *cpu_mask =NULL ; -size_t cpu_mask_size =0 ; +cpu_set_t cpu_mask; +size_t cpu_mask_size =sizeof (cpu_mask);struct perf_evlist *evlist =perf_evlist__new (NULL ,NULL );struct perf_evsel *evsel;struct perf_sample sample;
@@ -716,8 +705,7 @@ static int test__PERF_RECORD(void) evsel->attr.sample_type |=PERF_SAMPLE_TIME ;perf_evlist__config_attrs (evlist, &opts); - err =sched__get_first_possible_cpu (evlist->workload.pid, &cpu_mask, - &cpu_mask_size); + err =sched__get_first_possible_cpu (evlist->workload.pid, &cpu_mask);if (err <0 ) {pr_debug ("sched__get_first_possible_cpu: %s\n" ,strerror (errno)); goto out_delete_evlist;
@@ -728,9 +716,9 @@ static int test__PERF_RECORD(void)/* * So that we can check perf_sample.cpu on all the samples. */ -if (sched_setaffinity (evlist->workload.pid, cpu_mask_size, cpu_mask) <0 ) { +if (sched_setaffinity (evlist->workload.pid, cpu_mask_size, &cpu_mask) <0 ) {pr_debug ("sched_setaffinity: %s\n" ,strerror (errno)); - goto out_free_cpu_mask; + goto out_delete_evlist; }/*
@@ -914,8 +902,6 @@ found_exit: } out_err:perf_evlist__munmap (evlist); -out_free_cpu_mask: -CPU_FREE (cpu_mask); out_delete_evlist:perf_evlist__delete (evlist); out: