Linux 3.10.19
Greg KH
maintainerI'm announcing the release of the 3.10.19 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.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/arc/mm/fault.c | 6 arch/parisc/kernel/head.S | 4 arch/um/kernel/exitcode.c | 4 arch/x86/kernel/apic/x2apic_uv_x.c | 2 arch/xtensa/kernel/signal.c | 2 drivers/ata/libata-eh.c | 6 drivers/clk/versatile/clk-icst.c | 2 drivers/cpufreq/intel_pstate.c | 7 drivers/gpu/drm/drm_drv.c | 9 + drivers/gpu/drm/radeon/atombios_encoders.c | 2 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 17 +- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 2 drivers/md/bcache/request.c | 2 drivers/md/md.c | 5 drivers/md/raid1.c | 1 drivers/md/raid10.c | 1 drivers/md/raid5.c | 20 ++ drivers/net/can/at91_can.c | 4 drivers/net/can/flexcan.c | 14 + drivers/net/wireless/ath/ath9k/main.c | 23 +- drivers/net/wireless/iwlwifi/iwl-6000.c | 6 drivers/net/wireless/iwlwifi/iwl-config.h | 1 drivers/net/wireless/iwlwifi/pcie/drv.c | 10 + drivers/net/wireless/mwifiex/main.c | 6 drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 3 drivers/ntb/ntb_hw.c | 41 ++++- drivers/ntb/ntb_hw.h | 16 ++ drivers/ntb/ntb_regs.h | 4 drivers/ntb/ntb_transport.c | 17 -- drivers/scsi/aacraid/linit.c | 2 drivers/scsi/sd.c | 2 drivers/staging/bcm/Bcmchar.c | 1 drivers/staging/ozwpan/ozcdev.c | 3 drivers/staging/sb105x/sb_pci_mp.c | 2 drivers/staging/wlags49_h2/wl_priv.c | 9 - drivers/target/target_core_pscsi.c | 8 - drivers/uio/uio.c | 41 +++-- drivers/usb/core/quirks.c | 6 drivers/usb/serial/ftdi_sio.c | 1 drivers/usb/serial/ftdi_sio_ids.h | 6 drivers/usb/serial/option.c | 216 +++++++++++++++++++++++++++ drivers/usb/storage/scsiglue.c | 5 drivers/usb/storage/unusual_devs.h | 7 drivers/vhost/scsi.c | 2 drivers/video/au1100fb.c | 28 --- drivers/video/au1200fb.c | 27 --- fs/ecryptfs/keystore.c | 3 fs/jfs/jfs_inode.c | 3 fs/seq_file.c | 2 include/linux/usb_usual.h | 4 include/uapi/drm/drm_mode.h | 2 kernel/cgroup.c | 6 kernel/time/clockevents.c | 65 ++++++-- lib/scatterlist.c | 3 mm/huge_memory.c | 70 ++++++-- mm/memory.c | 54 ++---- mm/migrate.c | 19 +- mm/mprotect.c | 2 mm/pagewalk.c | 2 mm/vmalloc.c | 6 net/mac80211/cfg.c | 2 net/mac80211/ieee80211_i.h | 3 net/mac80211/rx.c | 3 net/mac80211/scan.c | 19 ++ net/mac80211/status.c | 3 net/mac80211/tx.c | 3 net/mac80211/util.c | 4 net/wireless/ibss.c | 3 scripts/kallsyms.c | 12 + scripts/link-vmlinux.sh | 2 sound/core/pcm.c | 4 sound/pci/hda/hda_codec.c | 4 sound/pci/hda/hda_generic.c | 4 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/wm_hubs.c | 1 sound/soc/soc-dapm.c | 2 77 files changed, 680 insertions(+), 236 deletions(-)
Aaron Lu (1):
SCSI: sd: call blk_pm_runtime_init before add_disk
Al Viro (2):
au1100fb: VM_IO is set by io_remap_pfn_range()
au1200fb: io_remap_pfn_range() sets VM_IO
Alex Deucher (1):
drm/radeon/atom: workaround vbios bug in transmitter table on rs780
Amitkumar Karwar (1):
mwifiex: fix SDIO interrupt lost issue
Anjana V Kumar (1):
cgroup: fix to break the while loop in cgroup_attach_task() correctly
Baruch Siach (1):
xtensa: don't use alternate signal stack on threads
Bian Yu (1):
md: avoid deadlock when md_set_badblocks.
Bruno Randolf (1):
cfg80211: fix warning when using WEXT for IBSS
Chen LinX (1):
mm/pagewalk.c: fix walk_page_range() access of wrong PTEs
Chris Wilson (2):
drm: Prevent overwriting from userspace underallocating core ioctl structs
drm: Pad drm_mode_get_connector to 64-bit boundary
Dan Carpenter (6):
staging: ozwpan: prevent overflow in oz_cdev_write()
Staging: bcm: info leak in ioctl
Staging: sb105x: info leak in mp_get_count()
staging: wlags49_h2: buffer overflow setting station name
uml: check length in exitcode_proc_write()
aacraid: missing capable() check in compat ioctl
Dave Kleikamp (1):
jfs: fix error path in ialloc
Dirk Brandewie (1):
cpufreq / intel_pstate: Fix max_perf_pct on resume
Emmanuel Grumbach (2):
mac80211: correctly close cancelled scans
iwlwifi: pcie: add SKUs for 6000, 6005 and 6235 series
Fangxiaozhi (Franko) (1):
USB: support new huawei devices in option.c
Felix Fietkau (4):
mac80211: drop spoofed packets in ad-hoc mode
mac80211: use sta_info_get_bss() for nl80211 tx and client probing
mac80211: update sta->last_rx on acked tx frames
ath9k: fix tx queue scheduling after channel changes
Geyslan G. Bem (1):
ecryptfs: Fix memory leakage in keystore.c
Greg Kroah-Hartman (1):
Linux 3.10.19
Gu Zheng (1):
seq_file: always update file->f_pos in seq_lseek()
Gwendal Grignou (1):
libata: make ata_eh_qc_retry() bump scmd->allowed on bogus failures
Helge Deller (1):
parisc: Do not crash 64bit SMP kernels on machines with >= 4GB RAM
Johannes Berg (1):
mac80211: fix crash if bitrate calculation goes wrong
Jon Mason (4):
NTB: Add Error Handling in ntb_device_setup
NTB: Correct Number of Scratch Pad Registers
NTB: Correct USD/DSD Identification
NTB: Correct debugfs to work with more than 1 NTB Device
Jonathan Austin (1):
clk: fixup argument order when setting VCO parameters
Kent Overstreet (1):
bcache: Fixed incorrect order of arguments to bio_alloc_bioset()
Linus Torvalds (1):
Fix a few incorrectly checked [io_]remap_pfn_range() calls
Lukasz Dorau (1):
md: Fix skipping recovery for read-only arrays.
Marc Kleine-Budde (3):
can: at91-can: fix device to driver data mapping for platform devices
can: flexcan: fix mx28 detection by rearanging OF match table
can: flexcan: flexcan_chip_start: fix regression, mark one MB for TX and abort pending TX
Mark Cave-Ayland (1):
rtlwifi: rtl8192cu: Fix error in pointer arithmetic
Mel Gorman (6):
mm: numa: Do not account for a hinting fault if we raced
mm: Wait for THP migrations to complete during NUMA hinting faults
mm: Prevent parallel splits during THP migration
mm: numa: Sanitize task_numa_fault() callsites
mm: Close races between THP migration and PMD numa clearing
mm: Account for a THP NUMA hinting update as one PTE update
Ming Lei (2):
scripts/kallsyms: filter symbols not in kernel address space lib/scatterlist.c: don't flush_kernel_dcache_page on slab page
Nicholas Bellinger (1):
vhost/scsi: Fix incorrect usage of get_user_pages_fast write parameter
Oliver Neukum (3):
usb-storage: add quirk for mandatory READ_CAPACITY_16
USB: quirks.c: add one device that cannot deal with suspension
USB: quirks: add touchscreen that is dazzeled by remote wakeup
Russ Anderson (1):
x86: Update UV3 hub revision ID
Russell King (1):
ALSA: fix oops in snd_pcm_info() caused by ASoC DPCM
Shaohua Li (2):
raid5: set bio bi_vcnt 0 for discard request
raid5: avoid finding "discard" stripe
Takashi Iwai (5):
ALSA: hda - Add missing initial vmaster hook at build_controls callback
ALSA: hda - Fix unbalanced runtime PM refcount after S3/S4
ALSA: hda - Add a fixup for ASUS N76VZ
ASoC: wm_hubs: Add missing break in hp_supply_event()
ASoC: dapm: Fix source list debugfs outputs
Thomas Gleixner (1):
clockevents: Sanitize ticks to nsec conversion
Thomas Hellstrom (2):
drm/vmwgfx: Don't put resources with invalid id's on lru list drm/vmwgfx: Don't kill clients on VT switch
Uwe Kleine-König (2):
mm: make generic_access_phys available for modules
uio: provide vm access to UIO_MEM_PHYS maps
Vineet Gupta (1):
ARC: Incorrect mm reference used in vmalloc fault handler
Wei Yongjun (1):
target/pscsi: fix return value check
Zhang Yanfei (1):
mm/vmalloc.c: fix an overflow bug in alloc_vmap_area()
Алексей Крамаренко (1):
USB: serial: ftdi_sio: add id for Z3X Box device
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 18 +SUBLEVEL = 19 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/arc/mm/fault.c +3 -3
@@ -16,7 +16,7 @@#include <linux/kdebug.h> #include <asm/pgalloc.h> -static int handle_vmalloc_fault (struct mm_struct *mm,unsigned long address) +static int handle_vmalloc_fault (unsigned long address) {/* * Synchronize this task's top level page-table
@@ -26,7 +26,7 @@ static int handle_vmalloc_fault(struct mm_struct *mm, unsigned long address)pud_t *pud, *pud_k;pmd_t *pmd, *pmd_k; - pgd =pgd_offset_fast (mm, address); + pgd =pgd_offset_fast (current->active_mm, address); pgd_k =pgd_offset_k (address);if (!pgd_present (*pgd_k))
@@ -72,7 +72,7 @@ void do_page_fault(struct pt_regs *regs, int write, unsigned long address,* nothing more. */ if (address >=VMALLOC_START && address <=VMALLOC_END ) { - ret =handle_vmalloc_fault (mm, address); + ret =handle_vmalloc_fault (address);if (unlikely (ret)) goto bad_area_nosemaphore;else
arch/parisc/kernel/head.S +4 -0
@@ -195,6 +195,8 @@ common_stext: ldw MEM_PDC_HI(%r0),%r6 depd %r6, 31, 32, %r3 /* move to upper word */ + mfctl %cr30,%r6 /* PCX-W2 firmware bug */ + ldo PDC_PSW(%r0),%arg0 /* 21 */ ldo PDC_PSW_SET_DEFAULTS(%r0),%arg1 /* 2 */ ldo PDC_PSW_WIDE_BIT(%r0),%arg2 /* 2 */
@@ -203,6 +205,8 @@ common_stext: copy %r0,%arg3 stext_pdc_ret: + mtctl %r6,%cr30 /* restore task thread info */ + /* restore rfi target address*/ ldd TI_TASK-THREAD_SZ_ALGN(%sp), %r10 tophys_r1 %r10
arch/um/kernel/exitcode.c +3 -1
@@ -40,9 +40,11 @@ static ssize_t exitcode_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; +size_t size;int tmp; -if (copy_from_user (buf, buffer, count)) + size =min (count,sizeof (buf)); +if (copy_from_user (buf, buffer, size))return -EFAULT ; tmp =simple_strtol (buf, &end,0 );
arch/x86/kernel/apic/x2apic_uv_x.c +1 -1
@@ -98,7 +98,7 @@ static int __init early_get_pnodeid(void)break ;case UV3_HUB_PART_NUMBER :case UV3_HUB_PART_NUMBER_X : - uv_min_hub_revision_id +=UV3_HUB_REVISION_BASE -1 ; + uv_min_hub_revision_id +=UV3_HUB_REVISION_BASE ;break ; }
arch/xtensa/kernel/signal.c +1 -1
@@ -341,7 +341,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info, sp = regs->areg[1 ]; -if ((ka->sa.sa_flags &SA_ONSTACK ) !=0 && !on_sig_stack (sp)) { +if ((ka->sa.sa_flags &SA_ONSTACK ) !=0 &&sas_ss_flags (sp) ==0 ) { sp = current->sas_ss_sp + current->sas_ss_size; }
drivers/ata/libata-eh.c +3 -3
@@ -1322,14 +1322,14 @@ void ata_eh_qc_complete(struct ata_queued_cmd *qc)* should be retried. To be used from EH. * * SCSI midlayer limits the number of retries to scmd->allowed. -* scmd->retries is decremented for commands which get retried +* scmd->allowed is incremented for commands which get retried * due to unrelated failures (qc->err_mask is zero). */ void ata_eh_qc_retry (struct ata_queued_cmd *qc) {struct scsi_cmnd *scmd = qc->scsicmd; -if (!qc->err_mask && scmd->retries) - scmd->retries--; +if (!qc->err_mask) + scmd->allowed++;__ata_eh_qc_complete (qc); }
drivers/clk/versatile/clk-icst.c +1 -1
@@ -107,7 +107,7 @@ static int icst_set_rate(struct clk_hw *hw, unsigned long rate, vco =icst_hz_to_vco (icst->params, rate); icst->rate =icst_hz (icst->params, vco); -vco_set (icst->vcoreg, icst->lockreg, vco); +vco_set (icst->lockreg, icst->vcoreg, vco);return 0 ; }
drivers/cpufreq/intel_pstate.c +3 -4
@@ -629,8 +629,8 @@ static int __cpuinit intel_pstate_cpu_exit(struct cpufreq_policy *policy)static int __cpuinit intel_pstate_cpu_init (struct cpufreq_policy *policy) { -int rc, min_pstate, max_pstate;struct cpudata *cpu; +int rc; rc =intel_pstate_init_cpu (policy->cpu);if (rc)
@@ -644,9 +644,8 @@ static int __cpuinit intel_pstate_cpu_init(struct cpufreq_policy *policy)else policy->policy =CPUFREQ_POLICY_POWERSAVE ; -intel_pstate_get_min_max (cpu, &min_pstate, &max_pstate); - policy->min = min_pstate *100000 ; - policy->max = max_pstate *100000 ; + policy->min = cpu->pstate.min_pstate *100000 ; + policy->max = cpu->pstate.turbo_pstate *100000 ;/* cpuinfo and default policy values */ policy->cpuinfo.min_freq = cpu->pstate.min_pstate *100000 ;
drivers/gpu/drm/drm_drv.c +8 -1
@@ -406,9 +406,16 @@ long drm_ioctl(struct file *filp, cmd = ioctl->cmd_drv; }else if ((nr >=DRM_COMMAND_END ) || (nr <DRM_COMMAND_BASE )) { +u32 drv_size; + ioctl = &drm_ioctls[nr]; - cmd = ioctl->cmd; + + drv_size =_IOC_SIZE (ioctl->cmd); usize = asize =_IOC_SIZE (cmd); +if (drv_size > asize) + asize = drv_size; + + cmd = ioctl->cmd; }else goto err_i1;
drivers/gpu/drm/radeon/atombios_encoders.c +1 -1
@@ -1641,7 +1641,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)* does the same thing and more. */ if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ) && - (rdev->family !=CHIP_RS880 )) + (rdev->family !=CHIP_RS780 ) && (rdev->family !=CHIP_RS880 ))atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT ,0 ,0 ); }if (ENCODER_MODE_IS_DP (atombios_get_encoder_mode (encoder)) && connector) {
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +12 -5
@@ -740,9 +740,17 @@ static void vmw_postclose(struct drm_device *dev,struct vmw_fpriv *vmw_fp; vmw_fp =vmw_fpriv (file_priv); -ttm_object_file_release (&vmw_fp->tfile); -if (vmw_fp->locked_master) + +if (vmw_fp->locked_master) { +struct vmw_master *vmaster = +vmw_master (vmw_fp->locked_master); + +ttm_lock_set_kill (&vmaster->lock, true,SIGTERM ); +ttm_vt_unlock (&vmaster->lock);drm_master_put (&vmw_fp->locked_master); + } + +ttm_object_file_release (&vmw_fp->tfile);kfree (vmw_fp); }
@@ -942,14 +950,13 @@ static void vmw_master_drop(struct drm_device *dev, vmw_fp->locked_master =drm_master_get (file_priv->master); ret =ttm_vt_lock (&vmaster->lock, false, vmw_fp->tfile); -vmw_execbuf_release_pinned_bo (dev_priv); -if (unlikely ((ret !=0 ))) {DRM_ERROR ("Unable to lock TTM at VT switch.\n" );drm_master_put (&vmw_fp->locked_master); } -ttm_lock_set_kill (&vmaster->lock, true,SIGTERM ); +ttm_lock_set_kill (&vmaster->lock, false,SIGTERM ); +vmw_execbuf_release_pinned_bo (dev_priv);if (!dev_priv->enable_fb) { ret =ttm_bo_evict_mm (&dev_priv->bdev,TTM_PL_VRAM );
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +1 -1
@@ -970,7 +970,7 @@ void vmw_resource_unreserve(struct vmw_resource *res,if (new_backup) res->backup_offset = new_backup_offset; -if (!res->func->may_evict) +if (!res->func->may_evict || res->id ==-1 )return ;write_lock (&dev_priv->resource_lock);
drivers/md/bcache/request.c +1 -1
@@ -1059,7 +1059,7 @@ static void request_write(struct cached_dev *dc, struct search *s)if (bio->bi_rw &REQ_FLUSH ) {/* Also need to send a flush to the backing device */ -struct bio *flush =bio_alloc_bioset (0 ,GFP_NOIO , +struct bio *flush =bio_alloc_bioset (GFP_NOIO ,0 , dc->disk.bio_split); flush->bi_rw =WRITE_FLUSH ;
drivers/md/md.c +3 -2
@@ -8072,6 +8072,7 @@ static int md_set_badblocks(struct badblocks *bb, sector_t s, int sectors,u64 *p;int lo, hi;int rv =1 ; +unsigned long flags;if (bb->shift <0 )/* badblocks are disabled */
@@ -8086,7 +8087,7 @@ static int md_set_badblocks(struct badblocks *bb, sector_t s, int sectors, sectors = next - s; } -write_seqlock_irq (&bb->lock); +write_seqlock_irqsave (&bb->lock, flags); p = bb->page; lo =0 ;
@@ -8202,7 +8203,7 @@ static int md_set_badblocks(struct badblocks *bb, sector_t s, int sectors, bb->changed =1 ;if (!acknowledged) bb->unacked_exist =1 ; -write_sequnlock_irq (&bb->lock); +write_sequnlock_irqrestore (&bb->lock, flags);return rv; }
drivers/md/raid1.c +1 -0
@@ -1479,6 +1479,7 @@ static int raid1_spare_active(struct mddev *mddev) } }if (rdev + && rdev->recovery_offset == MaxSector && !test_bit (Faulty, &rdev->flags) && !test_and_set_bit (In_sync, &rdev->flags)) { count++;
drivers/md/raid10.c +1 -0
@@ -1762,6 +1762,7 @@ static int raid10_spare_active(struct mddev *mddev) }sysfs_notify_dirent_safe (tmp->replacement->sysfs_state); }else if (tmp->rdev + && tmp->rdev->recovery_offset == MaxSector && !test_bit (Faulty, &tmp->rdev->flags) && !test_and_set_bit (In_sync, &tmp->rdev->flags)) { count++;
drivers/md/raid5.c +20 -0
@@ -668,6 +668,12 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) bi->bi_io_vec[0 ].bv_len =STRIPE_SIZE ; bi->bi_io_vec[0 ].bv_offset =0 ; bi->bi_size =STRIPE_SIZE ; +/* +* If this is discard request, set bi_vcnt 0. We don't +* want to confuse SCSI because SCSI will replace payload +*/ +if (rw &REQ_DISCARD ) + bi->bi_vcnt =0 ;if (rrdev)set_bit (R5_DOUBLE_LOCKED , &sh->dev[i].flags);
@@ -706,6 +712,12 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) rbi->bi_io_vec[0 ].bv_len =STRIPE_SIZE ; rbi->bi_io_vec[0 ].bv_offset =0 ; rbi->bi_size =STRIPE_SIZE ; +/* +* If this is discard request, set bi_vcnt 0. We don't +* want to confuse SCSI because SCSI will replace payload +*/ +if (rw &REQ_DISCARD ) + rbi->bi_vcnt =0 ;if (conf->mddev->gendisk) trace_block_bio_remap(bdev_get_queue(rbi->bi_bdev), rbi, disk_devt(conf->mddev->gendisk),
@@ -2800,6 +2812,14 @@ static void handle_stripe_clean_event(struct r5conf *conf, }/* now that discard is done we can proceed with any sync */ clear_bit (STRIPE_DISCARD , &sh->state); +/* +* SCSI discard will change some bio fields and the stripe has +* no updated data, so remove it from hash list and the stripe +* will be reinitialized +*/ +spin_lock_irq (&conf->device_lock); +remove_hash (sh); +spin_unlock_irq (&conf->device_lock);if (test_bit (STRIPE_SYNC_REQUESTED , &sh->state))set_bit (STRIPE_HANDLE , &sh->state);
drivers/net/can/at91_can.c +2 -2
@@ -1409,10 +1409,10 @@ static int at91_can_remove(struct platform_device *pdev)static const struct platform_device_id at91_can_id_table[] = { { - .name ="at91_can" , + .name ="at91sam9x5_can" , .driver_data = (kernel_ulong_t)&at91_at91sam9x5_data, }, { - .name ="at91sam9x5_can" , + .name ="at91_can" , .driver_data = (kernel_ulong_t)&at91_at91sam9263_data, }, {/* sentinel */
drivers/net/can/flexcan.c +10 -4
@@ -63,7 +63,7 @@#define FLEXCAN_MCR_BCC BIT(16)#define FLEXCAN_MCR_LPRIO_EN BIT(13)#define FLEXCAN_MCR_AEN BIT(12) -#define FLEXCAN_MCR_MAXMB (x) ((x) & 0xf) +#define FLEXCAN_MCR_MAXMB (x) ((x) & 0x1f)#define FLEXCAN_MCR_IDAM_A (0 << 8)#define FLEXCAN_MCR_IDAM_B (1 << 8)#define FLEXCAN_MCR_IDAM_C (2 << 8)
@@ -745,9 +745,11 @@ static int flexcan_chip_start(struct net_device *dev)* */ reg_mcr =flexcan_read (®s->mcr); + reg_mcr &= ~FLEXCAN_MCR_MAXMB (0xff ); reg_mcr |=FLEXCAN_MCR_FRZ |FLEXCAN_MCR_FEN |FLEXCAN_MCR_HALT |FLEXCAN_MCR_SUPV |FLEXCAN_MCR_WRN_EN | -FLEXCAN_MCR_IDAM_C |FLEXCAN_MCR_SRX_DIS ; +FLEXCAN_MCR_IDAM_C |FLEXCAN_MCR_SRX_DIS | +FLEXCAN_MCR_MAXMB (FLEXCAN_TX_BUF_ID );netdev_dbg (dev,"%s: writing mcr=0x%08x" , __func__, reg_mcr);flexcan_write (reg_mcr, ®s->mcr);
@@ -792,6 +794,10 @@ static int flexcan_chip_start(struct net_device *dev) ®s->cantxfg[i].can_ctrl); } +/* Abort any pending TX, mark Mailbox as INACTIVE */ +flexcan_write (FLEXCAN_MB_CNT_CODE (0x4 ), + ®s->cantxfg[FLEXCAN_TX_BUF_ID ].can_ctrl); +/* acceptance mask/acceptance code (accept everything) */ flexcan_write (0x0 , ®s->rxgmask);flexcan_write (0x0 , ®s->rx14mask);
@@ -983,9 +989,9 @@ static void unregister_flexcandev(struct net_device *dev) }static const struct of_device_id flexcan_of_match[] = { - { .compatible ="fsl,p1010-flexcan" , .data = &fsl_p1010_devtype_data, }, - { .compatible ="fsl,imx28-flexcan" , .data = &fsl_imx28_devtype_data, }, { .compatible ="fsl,imx6q-flexcan" , .data = &fsl_imx6q_devtype_data, }, + { .compatible ="fsl,imx28-flexcan" , .data = &fsl_imx28_devtype_data, }, + { .compatible ="fsl,p1010-flexcan" , .data = &fsl_p1010_devtype_data, }, {/* sentinel */ }, };MODULE_DEVICE_TABLE (of, flexcan_of_match);
drivers/net/wireless/ath/ath9k/main.c +11 -12
@@ -209,6 +209,7 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)struct ath_hw *ah = sc->sc_ah;struct ath_common *common =ath9k_hw_common (ah);unsigned long flags; +int i;if (ath_startrecv (sc) !=0 ) {ath_err (common,"Unable to restart recv logic\n" );
@@ -236,6 +237,15 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start) } work:ath_restart_work (sc); + +for (i =0 ; i <ATH9K_NUM_TX_QUEUES ; i++) { +if (!ATH_TXQ_SETUP (sc, i)) +continue ; + +spin_lock_bh (&sc->tx.txq[i].axq_lock); +ath_txq_schedule (sc, &sc->tx.txq[i]); +spin_unlock_bh (&sc->tx.txq[i].axq_lock); + } }if ((ah->caps.hw_caps &ATH9K_HW_CAP_ANT_DIV_COMB ) && sc->ant_rx !=3 )
@@ -543,21 +553,10 @@ chip_reset:static int ath_reset (struct ath_softc *sc) { -int i, r; +int r;ath9k_ps_wakeup (sc); - r =ath_reset_internal (sc,NULL ); - -for (i =0 ; i <ATH9K_NUM_TX_QUEUES ; i++) { -if (!ATH_TXQ_SETUP (sc, i)) -continue ; - -spin_lock_bh (&sc->tx.txq[i].axq_lock); -ath_txq_schedule (sc, &sc->tx.txq[i]); -spin_unlock_bh (&sc->tx.txq[i].axq_lock); - } -ath9k_ps_restore (sc);return r;
drivers/net/wireless/iwlwifi/iwl-6000.c +6 -0
@@ -268,6 +268,12 @@ const struct iwl_cfg iwl6035_2agn_cfg = { .ht_params = &iwl6000_ht_params, }; +const struct iwl_cfg iwl6035_2agn_sff_cfg = { + .name ="Intel(R) Centrino(R) Ultimate-N 6235 AGN" , +IWL_DEVICE_6035 , + .ht_params = &iwl6000_ht_params, +}; +const struct iwl_cfg iwl1030_bgn_cfg = { .name ="Intel(R) Centrino(R) Wireless-N 1030 BGN" ,IWL_DEVICE_6030 ,
drivers/net/wireless/iwlwifi/iwl-config.h +1 -0
@@ -316,6 +316,7 @@ extern const struct iwl_cfg iwl2000_2bgn_cfg;extern const struct iwl_cfg iwl2000_2bgn_d_cfg;extern const struct iwl_cfg iwl2030_2bgn_cfg;extern const struct iwl_cfg iwl6035_2agn_cfg; +extern const struct iwl_cfg iwl6035_2agn_sff_cfg;extern const struct iwl_cfg iwl105_bgn_cfg;extern const struct iwl_cfg iwl105_bgn_d_cfg;extern const struct iwl_cfg iwl135_bgn_cfg;
drivers/net/wireless/iwlwifi/pcie/drv.c +10 -0
@@ -138,13 +138,16 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = {/* 6x00 Series */ {IWL_PCI_DEVICE(0x422B, 0x1101, iwl6000_3agn_cfg)}, + {IWL_PCI_DEVICE(0x422B, 0x1108, iwl6000_3agn_cfg)}, {IWL_PCI_DEVICE(0x422B, 0x1121, iwl6000_3agn_cfg)}, + {IWL_PCI_DEVICE(0x422B, 0x1128, iwl6000_3agn_cfg)}, {IWL_PCI_DEVICE(0x422C, 0x1301, iwl6000i_2agn_cfg)}, {IWL_PCI_DEVICE(0x422C, 0x1306, iwl6000i_2abg_cfg)}, {IWL_PCI_DEVICE(0x422C, 0x1307, iwl6000i_2bg_cfg)}, {IWL_PCI_DEVICE(0x422C, 0x1321, iwl6000i_2agn_cfg)}, {IWL_PCI_DEVICE(0x422C, 0x1326, iwl6000i_2abg_cfg)}, {IWL_PCI_DEVICE(0x4238, 0x1111, iwl6000_3agn_cfg)}, + {IWL_PCI_DEVICE(0x4238, 0x1118, iwl6000_3agn_cfg)}, {IWL_PCI_DEVICE(0x4239, 0x1311, iwl6000i_2agn_cfg)}, {IWL_PCI_DEVICE(0x4239, 0x1316, iwl6000i_2abg_cfg)},
@@ -152,12 +155,16 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { {IWL_PCI_DEVICE(0x0082, 0x1301, iwl6005_2agn_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x1306, iwl6005_2abg_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x1307, iwl6005_2bg_cfg)}, + {IWL_PCI_DEVICE(0x0082, 0x1308, iwl6005_2agn_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x1321, iwl6005_2agn_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x1326, iwl6005_2abg_cfg)}, + {IWL_PCI_DEVICE(0x0082, 0x1328, iwl6005_2agn_cfg)}, {IWL_PCI_DEVICE(0x0085, 0x1311, iwl6005_2agn_cfg)}, + {IWL_PCI_DEVICE(0x0085, 0x1318, iwl6005_2agn_cfg)}, {IWL_PCI_DEVICE(0x0085, 0x1316, iwl6005_2abg_cfg)}, {IWL_PCI_DEVICE(0x0082, 0xC020, iwl6005_2agn_sff_cfg)}, {IWL_PCI_DEVICE(0x0085, 0xC220, iwl6005_2agn_sff_cfg)}, + {IWL_PCI_DEVICE(0x0085, 0xC228, iwl6005_2agn_sff_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x4820, iwl6005_2agn_d_cfg)}, {IWL_PCI_DEVICE(0x0082, 0x1304, iwl6005_2agn_mow1_cfg)},/* low 5GHz active */ {IWL_PCI_DEVICE(0x0082, 0x1305, iwl6005_2agn_mow2_cfg)},/* high 5GHz active */
@@ -239,8 +246,11 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = {/* 6x35 Series */ {IWL_PCI_DEVICE(0x088E, 0x4060, iwl6035_2agn_cfg)}, + {IWL_PCI_DEVICE(0x088E, 0x406A, iwl6035_2agn_sff_cfg)}, {IWL_PCI_DEVICE(0x088F, 0x4260, iwl6035_2agn_cfg)}, + {IWL_PCI_DEVICE(0x088F, 0x426A, iwl6035_2agn_sff_cfg)}, {IWL_PCI_DEVICE(0x088E, 0x4460, iwl6035_2agn_cfg)}, + {IWL_PCI_DEVICE(0x088E, 0x446A, iwl6035_2agn_sff_cfg)}, {IWL_PCI_DEVICE(0x088E, 0x4860, iwl6035_2agn_cfg)}, {IWL_PCI_DEVICE(0x088F, 0x5260, iwl6035_2agn_cfg)},
drivers/net/wireless/mwifiex/main.c +4 -2
@@ -270,10 +270,12 @@ process_start: } }while (true); -if ((adapter->int_status) ||IS_CARD_RX_RCVD (adapter)) +spin_lock_irqsave (&adapter->main_proc_lock, flags); +if ((adapter->int_status) ||IS_CARD_RX_RCVD (adapter)) { +spin_unlock_irqrestore (&adapter->main_proc_lock, flags); goto process_start; + } -spin_lock_irqsave (&adapter->main_proc_lock, flags); adapter->mwifiex_processing = false;spin_unlock_irqrestore (&adapter->main_proc_lock, flags);
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +2 -1
@@ -343,7 +343,8 @@ bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw, (bool)GET_RX_DESC_PAGGR(pdesc)); rx_status->mactime =GET_RX_DESC_TSFL (pdesc);if (phystatus) { - p_drvinfo = (struct rx_fwinfo_92c *)(pdesc +RTL_RX_DESC_SIZE ); + p_drvinfo = (struct rx_fwinfo_92c *)(skb->data + + stats->rx_bufshift);rtl92c_translate_rx_signal_stuff (hw, skb, stats, pdesc, p_drvinfo); }
drivers/ntb/ntb_hw.c +37 -4
93 lines not on this page · raw message
drivers/ntb/ntb_hw.h +16 -0
@@ -127,6 +127,8 @@ struct ntb_device {unsigned char link_status;struct delayed_work hb_timer;unsigned long last_ts; + +struct dentry *debugfs_dir; };/**
@@ -155,6 +157,20 @@ static inline struct pci_dev *ntb_query_pdev(struct ntb_device *ndev)return ndev->pdev; } +/** +* ntb_query_debugfs() - return the debugfs pointer +* @ndev: pointer to ntb_device instance +* +* Given the ntb pointer, return the debugfs directory pointer for the NTB +* hardware device +* +* RETURNS: a pointer to the debugfs directory +*/ +static inline struct dentry *ntb_query_debugfs (struct ntb_device *ndev) +{ +return ndev->debugfs_dir; +} +struct ntb_device *ntb_register_transport (struct pci_dev *pdev,void *transport);void ntb_unregister_transport (struct ntb_device *ndev);
drivers/ntb/ntb_regs.h +2 -2
@@ -53,8 +53,8 @@#define NTB_LINK_WIDTH_MASK 0x03f0#define SNB_MSIX_CNT 4 -#define SNB_MAX_SPADS 16 -#define SNB_MAX_COMPAT_SPADS 8 +#define SNB_MAX_B2B_SPADS 16 +#define SNB_MAX_COMPAT_SPADS 16/* Reserve the uppermost bit for link interrupt */ #define SNB_MAX_DB_BITS 15#define SNB_DB_BITS_PER_VEC 5
drivers/ntb/ntb_transport.c +5 -12
@@ -157,7 +157,6 @@ struct ntb_transport {bool transport_link;struct delayed_work link_work;struct work_struct link_cleanup; -struct dentry *debugfs_dir; };enum {
@@ -824,12 +823,12 @@ static void ntb_transport_init_queue(struct ntb_transport *nt, qp->tx_max_frame =min (transport_mtu, tx_size /2 ); qp->tx_max_entry = tx_size / qp->tx_max_frame; -if (nt->debugfs_dir) { +if (ntb_query_debugfs (nt->ndev)) {char debugfs_name[4 ];snprintf (debugfs_name,4 ,"qp%d" , qp_num); qp->debugfs_dir =debugfs_create_dir (debugfs_name, - nt->debugfs_dir); +ntb_query_debugfs (nt->ndev)); qp->debugfs_stats = debugfs_create_file("stats", S_IRUSR, qp->debugfs_dir, qp,
@@ -857,11 +856,6 @@ int ntb_transport_init(struct pci_dev *pdev)if (!nt)return -ENOMEM ; -if (debugfs_initialized ()) - nt->debugfs_dir =debugfs_create_dir (KBUILD_MODNAME ,NULL ); -else - nt->debugfs_dir =NULL ; - nt->ndev =ntb_register_transport (pdev, nt);if (!nt->ndev) { rc = -EIO ;
@@ -907,7 +901,6 @@ err2: err1:ntb_unregister_transport (nt->ndev); err: -debugfs_remove_recursive (nt->debugfs_dir);kfree (nt);return rc; }
@@ -921,16 +914,16 @@ void ntb_transport_free(void *transport) nt->transport_link =NTB_LINK_DOWN ;/* verify that all the qp's are freed */ -for (i =0 ; i < nt->max_qps; i++) +for (i =0 ; i < nt->max_qps; i++) {if (!test_bit (i, &nt->qp_bitmap))ntb_transport_free_queue (&nt->qps[i]); +debugfs_remove_recursive (nt->qps[i].debugfs_dir); + }ntb_bus_remove (nt);cancel_delayed_work_sync (&nt->link_work); -debugfs_remove_recursive (nt->debugfs_dir); -ntb_unregister_event_callback (nt->ndev); pdev =ntb_query_pdev (nt->ndev);
drivers/scsi/aacraid/linit.c +2 -0
@@ -771,6 +771,8 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned longstatic int aac_compat_ioctl (struct scsi_device *sdev,int cmd,void __user *arg) {struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; +if (!capable (CAP_SYS_RAWIO )) +return -EPERM ;return aac_compat_do_ioctl (dev, cmd, (unsigned long )arg); }
drivers/scsi/sd.c +1 -1
@@ -2843,6 +2843,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie) gd->events |=DISK_EVENT_MEDIA_CHANGE ; } +blk_pm_runtime_init (sdp->request_queue, dev);add_disk (gd);if (sdkp->capacity)sd_dif_config_host (sdkp);
@@ -2851,7 +2852,6 @@ static void sd_probe_async(void *data, async_cookie_t cookie)sd_printk (KERN_NOTICE , sdkp,"Attached SCSI %sdisk\n" , sdp->removable ?"removable " :"" ); -blk_pm_runtime_init (sdp->request_queue, dev);scsi_autopm_put_device (sdp);put_device (&sdkp->dev); }
drivers/staging/bcm/Bcmchar.c +1 -0
@@ -1960,6 +1960,7 @@ cntrlEnd:BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,OSAL_DBG ,DBG_LVL_ALL ,"Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n" ); +memset (&DevInfo,0 ,sizeof (DevInfo)); DevInfo.MaxRDMBufferSize =BUFFER_4K ; DevInfo.u32DSDStartOffset =EEPROM_CALPARAM_START ; DevInfo.u32RxAlignmentCorrection =0 ;
drivers/staging/ozwpan/ozcdev.c +3 -0
@@ -153,6 +153,9 @@ static ssize_t oz_cdev_write(struct file *filp, const char __user *buf,struct oz_app_hdr *app_hdr;struct oz_serial_ctx *ctx; +if (count >sizeof (ei->data) -sizeof (*elt) -sizeof (*app_hdr)) +return -EINVAL ; +spin_lock_bh (&g_cdev.lock); pd = g_cdev.active_pd;if (pd)
drivers/staging/sb105x/sb_pci_mp.c +1 -1
@@ -1063,7 +1063,7 @@ static int mp_wait_modem_status(struct sb_uart_state *state, unsigned long arg)static int mp_get_count (struct sb_uart_state *state,struct serial_icounter_struct *icnt) { -struct serial_icounter_struct icount; +struct serial_icounter_struct icount = {};struct sb_uart_icount cnow;struct sb_uart_port *port = state->port;
drivers/staging/wlags49_h2/wl_priv.c +6 -3
@@ -570,6 +570,7 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)ltv_t *pLtv;bool_t ltvAllocated = FALSE;ENCSTRCT sEncryption; +size_t len;#ifdef USE_WDS hcf_16 hcfPort =HCF_PORT_0 ;
@@ -686,7 +687,8 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)break ;case CFG_CNF_OWN_NAME :memset (lp->StationName,0 ,sizeof (lp->StationName)); -memcpy ((void *)lp->StationName, (void *)&pLtv->u.u8[2 ], (size_t )pLtv->u.u16[0 ]); + len =min_t (size_t, pLtv->u.u16[0 ],sizeof (lp->StationName)); +strlcpy (lp->StationName, &pLtv->u.u8[2 ], len); pLtv->u.u16[0 ] =CNV_INT_TO_LITTLE (pLtv->u.u16[0 ]);break ;case CFG_CNF_LOAD_BALANCING :
@@ -1783,6 +1785,7 @@ int wvlan_set_station_nickname(struct net_device *dev, {struct wl_private *lp =wl_priv (dev);unsigned long flags; +size_t len;int ret =0 ;/*------------------------------------------------------------------------*/
@@ -1793,8 +1796,8 @@ int wvlan_set_station_nickname(struct net_device *dev,wl_lock (lp, &flags);memset (lp->StationName,0 ,sizeof (lp->StationName)); - -memcpy (lp->StationName, extra, wrqu->data.length); + len =min_t (size_t, wrqu->data.length,sizeof (lp->StationName)); +strlcpy (lp->StationName, extra, len);/* Commit the adapter parameters */ wl_apply (lp);
drivers/target/target_core_pscsi.c +4 -4
@@ -134,10 +134,10 @@ static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag)* pSCSI Host ID and enable for phba mode */ sh =scsi_host_lookup (phv->phv_host_id); -if (IS_ERR (sh)) { +if (!sh) {pr_err ("pSCSI: Unable to locate SCSI Host for" " phv_host_id: %d\n" , phv->phv_host_id); -return PTR_ERR (sh); +return -EINVAL ; } phv->phv_lld_host = sh;
@@ -515,10 +515,10 @@ static int pscsi_configure_device(struct se_device *dev) sh = phv->phv_lld_host; }else { sh =scsi_host_lookup (pdv->pdv_host_id); -if (IS_ERR (sh)) { +if (!sh) {pr_err ("pSCSI: Unable to locate" " pdv_host_id: %d\n" , pdv->pdv_host_id); -return PTR_ERR (sh); +return -EINVAL ; } } }else {
drivers/uio/uio.c +31 -10
67 lines not on this page · raw message
drivers/usb/core/quirks.c +6 -0
@@ -97,6 +97,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Alcor Micro Corp. Hub */ { USB_DEVICE(0x058f, 0x9254), .driver_info = USB_QUIRK_RESET_RESUME }, + /* MicroTouch Systems touchscreen */ + { USB_DEVICE(0x0596, 0x051e), .driver_info = USB_QUIRK_RESET_RESUME }, + /* appletouch */ { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME },
@@ -130,6 +133,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Broadcom BCM92035DGROM BT dongle */ { USB_DEVICE(0x0a5c, 0x2021), .driver_info = USB_QUIRK_RESET_RESUME }, + /* MAYA44USB sound device */ + { USB_DEVICE(0x0a92, 0x0091), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Action Semiconductor flash disk */ { USB_DEVICE(0x10d6, 0x2200), .driver_info = USB_QUIRK_STRING_FETCH_255 },
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -906,6 +906,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_LUMEL_PD12_PID) },/* Crucible Devices */ { USB_DEVICE(FTDI_VID, FTDI_CT_COMET_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_Z3X_PID) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +6 -0
@@ -1307,3 +1307,9 @@* Manufacturer: Crucible Technologies */ #define FTDI_CT_COMET_PID 0x8e08 + +/* +* Product: Z3X Box +* Manufacturer: Smart GSM Team +*/ +#define FTDI_Z3X_PID 0x0011
drivers/usb/serial/option.c +216 -0
222 lines not on this page · raw message
drivers/usb/storage/scsiglue.c +4 -1
@@ -211,8 +211,11 @@ static int slave_configure(struct scsi_device *sdev)/* * Many devices do not respond properly to READ_CAPACITY_16. * Tell the SCSI layer to try READ_CAPACITY_10 first. +* However some USB 3.0 drive enclosures return capacity +* modulo 2TB. Those must use READ_CAPACITY_16 */ - sdev->try_rc_10_first =1 ; +if (!(us->fflags &US_FL_NEEDS_CAP16 )) + sdev->try_rc_10_first =1 ;/* assume SPC3 or latter devices support sense size > 18 */ if (sdev->scsi_level >SCSI_SPC_2 )
drivers/usb/storage/unusual_devs.h +7 -0
@@ -1925,6 +1925,13 @@ UNUSUAL_DEV( 0x1652, 0x6600, 0x0201, 0x0201, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Oliver Neukum <[email protected]> */ +UNUSUAL_DEV (0x174c ,0x55aa ,0x0100 ,0x0100 , +"ASMedia" , +"AS2105" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_NEEDS_CAP16 ), +/* Reported by Jesse Feddema <[email protected]> */ UNUSUAL_DEV( 0x177f, 0x0400, 0x0000, 0x0000, "Yarvik",
drivers/vhost/scsi.c +1 -1
@@ -1017,7 +1017,7 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,if (data_direction !=DMA_NONE ) { ret =vhost_scsi_map_iov_to_sgl (tv_cmd, &vq->iov[data_first], data_num, - data_direction ==DMA_TO_DEVICE ); + data_direction ==DMA_FROM_DEVICE );if (unlikely (ret)) {vq_err (vq,"Failed to map iov to sgl\n" ); goto err_free;
drivers/video/au1100fb.c +1 -27
@@ -361,39 +361,13 @@ void au1100fb_fb_rotate(struct fb_info *fbi, int angle)int au1100fb_fb_mmap (struct fb_info *fbi,struct vm_area_struct *vma) {struct au1100fb_device *fbdev; -unsigned int len; -unsigned long start=0 , off; fbdev =to_au1100fb_device (fbi); -if (vma->vm_pgoff > (~0UL >>PAGE_SHIFT )) { -return -EINVAL ; - } - - start = fbdev->fb_phys &PAGE_MASK ; - len =PAGE_ALIGN ((start & ~PAGE_MASK ) + fbdev->fb_len); - - off = vma->vm_pgoff <<PAGE_SHIFT ; - -if ((vma->vm_end - vma->vm_start + off) > len) { -return -EINVAL ; - } - - off += start; - vma->vm_pgoff = off >>PAGE_SHIFT ; - vma->vm_page_prot =pgprot_noncached (vma->vm_page_prot);pgprot_val (vma->vm_page_prot) |= (6 <<9 );//CCA=6 - vma->vm_flags |=VM_IO ; - -if (io_remap_pfn_range (vma, vma->vm_start, off >>PAGE_SHIFT , - vma->vm_end - vma->vm_start, - vma->vm_page_prot)) { -return -EAGAIN ; - } - -return 0 ; +return vm_iomap_memory (vma, fbdev->fb_phys, fbdev->fb_len); } static struct fb_ops au1100fb_ops =
drivers/video/au1200fb.c +1 -26
@@ -1233,38 +1233,13 @@ static int au1200fb_fb_blank(int blank_mode, struct fb_info *fbi)* method mainly to allow the use of the TLB streaming flag (CCA=6) */ static int au1200fb_fb_mmap (struct fb_info *info,struct vm_area_struct *vma) - { -unsigned int len; -unsigned long start=0 , off;struct au1200fb_device *fbdev = info->par; -if (vma->vm_pgoff > (~0UL >>PAGE_SHIFT )) { -return -EINVAL ; - } - - start = fbdev->fb_phys &PAGE_MASK ; - len =PAGE_ALIGN ((start & ~PAGE_MASK ) + fbdev->fb_len); - - off = vma->vm_pgoff <<PAGE_SHIFT ; - -if ((vma->vm_end - vma->vm_start + off) > len) { -return -EINVAL ; - } - - off += start; - vma->vm_pgoff = off >>PAGE_SHIFT ; - vma->vm_page_prot =pgprot_noncached (vma->vm_page_prot);pgprot_val (vma->vm_page_prot) |= _CACHE_MASK;/* CCA=7 */ - vma->vm_flags |=VM_IO ; - -return io_remap_pfn_range (vma, vma->vm_start, off >>PAGE_SHIFT , - vma->vm_end - vma->vm_start, - vma->vm_page_prot); - -return 0 ; +return vm_iomap_memory (vma, fbdev->fb_phys, fbdev->fb_len); }static void set_global (u_int cmd,struct au1200_lcd_global_regs_t *pdata)
fs/ecryptfs/keystore.c +2 -1
@@ -1149,7 +1149,7 @@ decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok,struct ecryptfs_msg_ctx *msg_ctx;struct ecryptfs_message *msg =NULL ;char *auth_tok_sig; -char *payload; +char *payload =NULL ;size_t payload_len =0 ;int rc;
@@ -1203,6 +1203,7 @@ decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok, } out:kfree (msg); +kfree (payload);return rc; }
fs/jfs/jfs_inode.c +1 -2
@@ -95,7 +95,7 @@ struct inode *ialloc(struct inode *parent, umode_t mode)if (insert_inode_locked (inode) <0 ) { rc = -EINVAL ; - goto fail_unlock; + goto fail_put; }inode_init_owner (inode, parent, mode);
@@ -156,7 +156,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode) fail_drop:dquot_drop (inode); inode->i_flags |=S_NOQUOTA ; -fail_unlock:clear_nlink (inode);unlock_new_inode (inode); fail_put:
fs/seq_file.c +2 -0
@@ -328,6 +328,8 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence) m->read_pos = offset; retval = file->f_pos = offset; } + }else { + file->f_pos = offset; } } file->f_version = m->version;
include/linux/usb_usual.h +3 -1
@@ -66,7 +66,9 @@US_FLAG (INITIAL_READ10 ,0x00100000 ) \ /* Initial READ(10) (and others) must be retried */ \US_FLAG (WRITE_CACHE ,0x00200000 ) \ - /* Write Cache status is not available */ + /* Write Cache status is not available */ \ +US_FLAG (NEEDS_CAP16 ,0x00400000 ) + /* cannot handle READ_CAPACITY_10 */#define US_FLAG (name, value) US_FL_##name = value ,enum {US_DO_ALL_FLAGS };
include/uapi/drm/drm_mode.h +2 -0
@@ -223,6 +223,8 @@ struct drm_mode_get_connector {__u32 connection;__u32 mm_width, mm_height;/**< HxW in millimeters */ __u32 subpixel; + +__u32 pad; };#define DRM_MODE_PROP_PENDING (1<<0)
kernel/cgroup.c +3 -3
@@ -1995,7 +1995,7 @@ static int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk,/* @tsk either already exited or can't exit until the end */ if (tsk->flags &PF_EXITING ) -continue ; + goto next;/* as per above, nr_threads may decrease, but not increase. */ BUG_ON (i >= group_size);
@@ -2003,7 +2003,7 @@ static int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk, ent.cgrp =task_cgroup_from_root (tsk, root);/* nothing to do if this task is already in the cgroup */ if (ent.cgrp == cgrp) -continue ; + goto next;/* * saying GFP_ATOMIC has no effect here because we did prealloc * earlier, but it's good form to communicate our expectations.
@@ -2011,7 +2011,7 @@ static int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk, retval =flex_array_put (group, i, &ent,GFP_ATOMIC );BUG_ON (retval !=0 ); i++; - + next:if (!threadgroup)break ; }while_each_thread (leader, tsk);
kernel/time/clockevents.c +50 -15
87 lines not on this page · raw message
lib/scatterlist.c +2 -1
@@ -529,7 +529,8 @@ void sg_miter_stop(struct sg_mapping_iter *miter) miter->__offset += miter->consumed; miter->__remaining -= miter->consumed; -if (miter->__flags &SG_MITER_TO_SG ) +if ((miter->__flags &SG_MITER_TO_SG ) && + !PageSlab (miter->page))flush_kernel_dcache_page (miter->page);if (miter->__flags &SG_MITER_ATOMIC ) {
mm/huge_memory.c +48 -22
112 lines not on this page · raw message
mm/memory.c +22 -32
114 lines not on this page · raw message
mm/migrate.c +11 -8
@@ -1710,12 +1710,12 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm,unlock_page (new_page);put_page (new_page);/* Free it */ -unlock_page (page); +/* Retake the callers reference and putback on LRU */ +get_page (page);putback_lru_page (page); - -count_vm_events (PGMIGRATE_FAIL ,HPAGE_PMD_NR ); - isolated =0 ; - goto out; +mod_zone_page_state (page_zone (page), +NR_ISOLATED_ANON + page_lru, -HPAGE_PMD_NR ); + goto out_fail; }/*
@@ -1732,9 +1732,9 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm, entry =maybe_pmd_mkwrite (pmd_mkdirty (entry), vma); entry =pmd_mkhuge (entry); -page_add_new_anon_rmap (new_page, vma, haddr); - +pmdp_clear_flush (vma, haddr, pmd);set_pmd_at (mm, haddr, pmd, entry); +page_add_new_anon_rmap (new_page, vma, haddr);update_mmu_cache_pmd (vma, address, &entry);page_remove_rmap (page);/*
@@ -1753,7 +1753,6 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm,count_vm_events (PGMIGRATE_SUCCESS ,HPAGE_PMD_NR );count_vm_numa_events (NUMA_PAGE_MIGRATE ,HPAGE_PMD_NR ); -out:mod_zone_page_state (page_zone (page),NR_ISOLATED_ANON + page_lru, -HPAGE_PMD_NR );
@@ -1762,6 +1761,10 @@ out: out_fail:count_vm_events (PGMIGRATE_FAIL ,HPAGE_PMD_NR ); out_dropref: + entry =pmd_mknonnuma (entry); +set_pmd_at (mm, haddr, pmd, entry); +update_mmu_cache_pmd (vma, address, &entry); +unlock_page (page);put_page (page);return 0 ;
mm/mprotect.c +1 -1
@@ -145,7 +145,7 @@ static inline unsigned long change_pmd_range(struct vm_area_struct *vma,split_huge_page_pmd (vma, addr, pmd); else if (change_huge_pmd(vma, pmd, addr, newprot,prot_numa )) { - pages +=HPAGE_PMD_NR ; + pages++;continue ; }/* fall through */
mm/pagewalk.c +1 -1
@@ -242,7 +242,7 @@ int walk_page_range(unsigned long addr, unsigned long end,if (err)break ; pgd++; - }while (addr = next, addr != end); + }while (addr = next, addr < end);return err; }
mm/vmalloc.c +3 -3
@@ -388,12 +388,12 @@ nocache: addr =ALIGN (first->va_end, align);if (addr < vstart) goto nocache; -if (addr + size -1 < addr) +if (addr + size < addr) goto overflow; }else { addr =ALIGN (vstart, align); -if (addr + size -1 < addr) +if (addr + size < addr) goto overflow; n = vmap_area_root.rb_node;
@@ -420,7 +420,7 @@ nocache:if (addr + cached_hole_size < first->va_start) cached_hole_size = first->va_start - addr; addr =ALIGN (first->va_end, align); -if (addr + size -1 < addr) +if (addr + size < addr) goto overflow;if (list_is_last (&first->list, &vmap_area_list))
net/mac80211/cfg.c +1 -1
@@ -3315,7 +3315,7 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev,return -EINVAL ; } band = chanctx_conf->def.chan->band; - sta =sta_info_get (sdata, peer); + sta =sta_info_get_bss (sdata, peer);if (sta) { qos =test_sta_flag (sta,WLAN_STA_WME ); }else {
net/mac80211/ieee80211_i.h +3 -0
@@ -842,6 +842,8 @@ struct tpt_led_trigger {* that the scan completed. * @SCAN_ABORTED: Set for our scan work function when the driver reported * a scan complete for an aborted scan. +* @SCAN_HW_CANCELLED: Set for our scan work function when the scan is being +* cancelled. */ enum {SCAN_SW_SCANNING ,
@@ -849,6 +851,7 @@ enum {SCAN_ONCHANNEL_SCANNING ,SCAN_COMPLETED ,SCAN_ABORTED , + SCAN_HW_CANCELLED, };/**
net/mac80211/rx.c +3 -0
@@ -3002,6 +3002,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,case NL80211_IFTYPE_ADHOC :if (!bssid)return 0 ; +if (ether_addr_equal (sdata->vif.addr, hdr->addr2) || +ether_addr_equal (sdata->u.ibss.bssid, hdr->addr2)) +return 0 ;if (ieee80211_is_beacon (hdr->frame_control)) {return 1 ; }else if (!ieee80211_bssid_match (bssid, sdata->u.ibss.bssid)) {
net/mac80211/scan.c +19 -0
@@ -202,6 +202,9 @@ static bool ieee80211_prep_hw_scan(struct ieee80211_local *local)enum ieee80211_band band;int i, ielen, n_chans; +if (test_bit (SCAN_HW_CANCELLED , &local->scanning)) +return false; + do { if (local->hw_scan_band == IEEE80211_NUM_BANDS) return false;
@@ -878,7 +881,23 @@ void ieee80211_scan_cancel(struct ieee80211_local *local)if (!local->scan_req) goto out; +/* +* We have a scan running and the driver already reported completion, +* but the worker hasn't run yet or is stuck on the mutex - mark it as +* cancelled. +*/ +if (test_bit (SCAN_HW_SCANNING , &local->scanning) && +test_bit (SCAN_COMPLETED , &local->scanning)) { +set_bit (SCAN_HW_CANCELLED , &local->scanning); + goto out; + } +if (test_bit (SCAN_HW_SCANNING , &local->scanning)) { +/* +* Make sure that __ieee80211_scan_completed doesn't trigger a +* scan on another band. +*/ +set_bit (SCAN_HW_CANCELLED , &local->scanning);if (local->ops->cancel_hw_scan) drv_cancel_hw_scan(local, rcu_dereference_protected(local->scan_sdata,
net/mac80211/status.c +3 -0
@@ -180,6 +180,9 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb)struct ieee80211_local *local = sta->local;struct ieee80211_sub_if_data *sdata = sta->sdata; +if (local->hw.flags &IEEE80211_HW_REPORTS_TX_ACK_STATUS ) + sta->last_rx = jiffies; +if (ieee80211_is_data_qos (mgmt->frame_control)) {struct ieee80211_hdr *hdr = (void *) skb->data;u8 *qc =ieee80211_get_qos_ctl (hdr);
net/mac80211/tx.c +2 -1
@@ -1100,7 +1100,8 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata, tx->sta =rcu_dereference (sdata->u.vlan.sta);if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr)return TX_DROP ; - }else if (info->flags &IEEE80211_TX_CTL_INJECTED || + }else if (info->flags & (IEEE80211_TX_CTL_INJECTED | +IEEE80211_TX_INTFL_NL80211_FRAME_TX ) || tx->sdata->control_port_protocol == tx->skb->protocol) { tx->sta =sta_info_get_bss (sdata, hdr->addr1); }
net/mac80211/util.c +4 -0
@@ -2174,6 +2174,10 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local, } rate =cfg80211_calculate_bitrate (&ri); +if (WARN_ONCE (!rate, +"Invalid bitrate: flags=0x%x, idx=%d, vht_nss=%d\n" , + status->flag, status->rate_idx, status->vht_nss)) +return 0 ;/* rewind from end of MPDU */ if (status->flag &RX_FLAG_MACTIME_END )
net/wireless/ibss.c +3 -0
@@ -269,6 +269,8 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,if (chan->flags &IEEE80211_CHAN_DISABLED )continue ; wdev->wext.ibss.chandef.chan = chan; + wdev->wext.ibss.chandef.center_freq1 = + chan->center_freq;break ; }
@@ -353,6 +355,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev,if (chan) { wdev->wext.ibss.chandef.chan = chan; wdev->wext.ibss.chandef.width =NL80211_CHAN_WIDTH_20_NOHT ; + wdev->wext.ibss.chandef.center_freq1 = freq; wdev->wext.ibss.channel_fixed = true; }else {/* cfg80211_ibss_wext_join will pick one if needed */
scripts/kallsyms.c +11 -1
@@ -55,6 +55,7 @@ static struct sym_entry *table;static unsigned int table_size, table_cnt;static int all_symbols =0 ;static char symbol_prefix_char ='\0' ; +static unsigned long long kernel_start_addr =0 ;int token_profit[0x10000 ];
@@ -65,7 +66,10 @@ unsigned char best_table_len[256];static void usage (void ) { -fprintf (stderr,"Usage: kallsyms [--all-symbols] [--symbol-prefix=<prefix char>] < in.map > out.S\n" ); +fprintf (stderr,"Usage: kallsyms [--all-symbols] " +"[--symbol-prefix=<prefix char>] " +"[--page-offset=<CONFIG_PAGE_OFFSET>] " +"< in.map > out.S\n" );exit (1 ); }
@@ -194,6 +198,9 @@ static int symbol_valid(struct sym_entry *s)int i;int offset =1 ; +if (s->addr < kernel_start_addr) +return 0 ; +/* skip prefix char */ if (symbol_prefix_char && *(s->sym +1 ) == symbol_prefix_char) offset++;
@@ -646,6 +653,9 @@ int main(int argc, char **argv)if ((*p =='"' && *(p+2 ) =='"' ) || (*p =='\'' && *(p+2 ) =='\'' )) p++; symbol_prefix_char = *p; + }else if (strncmp (argv[i],"--page-offset=" ,14 ) ==0 ) { +const char *p = &argv[i][14 ]; + kernel_start_addr =strtoull (p,NULL ,16 ); }else usage (); }
scripts/link-vmlinux.sh +2 -0
@@ -82,6 +82,8 @@ kallsyms() kallsymopt="${kallsymopt} --all-symbols" fi + kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" + local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \ ${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS}"
sound/core/pcm.c +4 -0
@@ -49,6 +49,8 @@ static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device)struct snd_pcm *pcm;list_for_each_entry (pcm, &snd_pcm_devices, list) { +if (pcm->internal) +continue ;if (pcm->card == card && pcm->device == device)return pcm; }
@@ -60,6 +62,8 @@ static int snd_pcm_next(struct snd_card *card, int device)struct snd_pcm *pcm;list_for_each_entry (pcm, &snd_pcm_devices, list) { +if (pcm->internal) +continue ;if (pcm->card == card && pcm->device > device)return pcm->device;else if (pcm->card->number > card->number)
sound/pci/hda/hda_codec.c +2 -2
@@ -4789,8 +4789,8 @@ static void hda_power_work(struct work_struct *work)spin_unlock (&codec->power_lock); state =hda_call_codec_suspend (codec, true); - codec->pm_down_notified =0 ; -if (!bus->power_keep_link_on && (state &AC_PWRST_CLK_STOP_OK )) { +if (!codec->pm_down_notified && + !bus->power_keep_link_on && (state &AC_PWRST_CLK_STOP_OK )) { codec->pm_down_notified =1 ;hda_call_pm_notify (bus, false); }
sound/pci/hda/hda_generic.c +3 -1
@@ -4383,9 +4383,11 @@ int snd_hda_gen_build_controls(struct hda_codec *codec) true, &spec->vmaster_mute.sw_kctl);if (err <0 )return err; -if (spec->vmaster_mute.hook) +if (spec->vmaster_mute.hook) {snd_hda_add_vmaster_hook (codec, &spec->vmaster_mute, spec->vmaster_mute_enum); +snd_hda_sync_vmaster_hook (&spec->vmaster_mute); + } }free_kctls (spec);/* no longer needed */
sound/pci/hda/patch_realtek.c +1 -0
@@ -4253,6 +4253,7 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = {SND_PCI_QUIRK (0x1028 ,0x05db ,"Dell" ,ALC668_FIXUP_DELL_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x103c ,0x1632 ,"HP RP5800" ,ALC662_FIXUP_HP_RP5800 ),SND_PCI_QUIRK (0x1043 ,0x1477 ,"ASUS N56VZ" ,ALC662_FIXUP_ASUS_MODE4 ), +SND_PCI_QUIRK (0x1043 ,0x1bf3 ,"ASUS N76VZ" ,ALC662_FIXUP_ASUS_MODE4 ),SND_PCI_QUIRK (0x1043 ,0x8469 ,"ASUS mobo" ,ALC662_FIXUP_NO_JACK_DETECT ),SND_PCI_QUIRK (0x105b ,0x0cd6 ,"Foxconn" ,ALC662_FIXUP_ASUS_MODE2 ), SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
sound/soc/codecs/wm_hubs.c +1 -0
@@ -530,6 +530,7 @@ static int hp_supply_event(struct snd_soc_dapm_widget *w, hubs->hp_startup_mode);break ; } +break ;case SND_SOC_DAPM_PRE_PMD : snd_soc_update_bits(codec, WM8993_CHARGE_PUMP_1,
sound/soc/soc-dapm.c +1 -1
@@ -1797,7 +1797,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, w->active ? "active" : "inactive");list_for_each_entry (p, &w->sources, list_sink) { -if (p->connected && !p->connected (w, p->sink)) +if (p->connected && !p->connected (w, p->source))continue ;if (p->connect)