diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable-2level.h linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable-2level.h
--- linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable-2level.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable-2level.h	2016-07-27 12:56:02.000000000 -0400
@@ -163,6 +163,7 @@ static inline pmd_t *pmd_offset(pud_t *p
 
 #define pmd_large(pmd)		(pmd_val(pmd) & 2)
 #define pmd_bad(pmd)		(pmd_val(pmd) & 2)
+#define pmd_present(pmd)	(pmd_val(pmd))
 
 #define copy_pmd(pmdpd,pmdps)		\
 	do {				\
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable-3level.h linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable-3level.h
--- linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable-3level.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable-3level.h	2016-07-27 12:56:02.000000000 -0400
@@ -212,6 +212,7 @@ static inline pmd_t *pmd_offset(pud_t *p
 						: !!(pmd_val(pmd) & (val)))
 #define pmd_isclear(pmd, val)	(!(pmd_val(pmd) & (val)))
 
+#define pmd_present(pmd)	(pmd_isset((pmd), L_PMD_SECT_VALID))
 #define pmd_young(pmd)		(pmd_isset((pmd), PMD_SECT_AF))
 
 #define __HAVE_ARCH_PMD_WRITE
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable.h linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable.h
--- linux-libre-3.14.73-gnu/arch/arm/include/asm/pgtable.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/arm/include/asm/pgtable.h	2016-07-27 12:56:02.000000000 -0400
@@ -182,7 +182,6 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD
 #define pgd_offset_k(addr)	pgd_offset(&init_mm, addr)
 
 #define pmd_none(pmd)		(!pmd_val(pmd))
-#define pmd_present(pmd)	(pmd_val(pmd))
 
 static inline pte_t *pmd_page_vaddr(pmd_t pmd)
 {
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/mips/include/asm/kvm_host.h linux-libre-3.14.74-gnu/arch/mips/include/asm/kvm_host.h
--- linux-libre-3.14.73-gnu/arch/mips/include/asm/kvm_host.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/mips/include/asm/kvm_host.h	2016-07-27 12:56:02.000000000 -0400
@@ -342,6 +342,7 @@ struct kvm_mips_tlb {
 #define KVM_MIPS_GUEST_TLB_SIZE     64
 struct kvm_vcpu_arch {
 	void *host_ebase, *guest_ebase;
+	int (*vcpu_run)(struct kvm_run *run, struct kvm_vcpu *vcpu);
 	unsigned long host_stack;
 	unsigned long host_gp;
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_locore.S linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_locore.S
--- linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_locore.S	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_locore.S	2016-07-27 12:56:02.000000000 -0400
@@ -229,6 +229,7 @@ FEXPORT(__kvm_mips_load_k0k1)
 
 	/* Jump to guest */
 	eret
+EXPORT(__kvm_mips_vcpu_run_end)
 
 VECTOR(MIPSX(exception), unknown)
 /*
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_mips.c linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_mips.c
--- linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_mips.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_mips.c	2016-07-27 12:56:02.000000000 -0400
@@ -348,6 +348,15 @@ struct kvm_vcpu *kvm_arch_vcpu_create(st
 	memcpy(gebase + offset, mips32_GuestException,
 	       mips32_GuestExceptionEnd - mips32_GuestException);
 
+#ifdef MODULE
+	offset += mips32_GuestExceptionEnd - mips32_GuestException;
+	memcpy(gebase + offset, (char *)__kvm_mips_vcpu_run,
+	       __kvm_mips_vcpu_run_end - (char *)__kvm_mips_vcpu_run);
+	vcpu->arch.vcpu_run = gebase + offset;
+#else
+	vcpu->arch.vcpu_run = __kvm_mips_vcpu_run;
+#endif
+
 	/* Invalidate the icache for these ranges */
 	mips32_SyncICache((unsigned long) gebase, ALIGN(size, PAGE_SIZE));
 
@@ -431,7 +440,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_v
 
 	kvm_guest_enter();
 
-	r = __kvm_mips_vcpu_run(run, vcpu);
+	r = vcpu->arch.vcpu_run(run, vcpu);
 
 	kvm_guest_exit();
 	local_irq_enable();
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_mips_int.h linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_mips_int.h
--- linux-libre-3.14.73-gnu/arch/mips/kvm/kvm_mips_int.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/mips/kvm/kvm_mips_int.h	2016-07-27 12:56:02.000000000 -0400
@@ -27,6 +27,8 @@
 #define MIPS_EXC_MAX                12
 /* XXXSL More to follow */
 
+extern char __kvm_mips_vcpu_run_end[];
+
 #define C_TI        (_ULCAST_(1) << 30)
 
 #define KVM_MIPS_IRQ_DELIVER_ALL_AT_ONCE (0)
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/powerpc/kernel/process.c linux-libre-3.14.74-gnu/arch/powerpc/kernel/process.c
--- linux-libre-3.14.73-gnu/arch/powerpc/kernel/process.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/powerpc/kernel/process.c	2016-07-27 12:56:02.000000000 -0400
@@ -1237,6 +1237,16 @@ void start_thread(struct pt_regs *regs,
 		current->thread.regs = regs - 1;
 	}
 
+#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
+	/*
+	 * Clear any transactional state, we're exec()ing. The cause is
+	 * not important as there will never be a recheckpoint so it's not
+	 * user visible.
+	 */
+	if (MSR_TM_SUSPENDED(mfmsr()))
+		tm_reclaim_current(0);
+#endif
+
 	memset(regs->gpr, 0, sizeof(regs->gpr));
 	regs->ctr = 0;
 	regs->link = 0;
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/powerpc/platforms/pseries/iommu.c linux-libre-3.14.74-gnu/arch/powerpc/platforms/pseries/iommu.c
--- linux-libre-3.14.73-gnu/arch/powerpc/platforms/pseries/iommu.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/powerpc/platforms/pseries/iommu.c	2016-07-27 12:56:02.000000000 -0400
@@ -826,7 +826,8 @@ machine_arch_initcall(pseries, find_exis
 static int query_ddw(struct pci_dev *dev, const u32 *ddw_avail,
 			struct ddw_query_response *query)
 {
-	struct eeh_dev *edev;
+	struct device_node *dn;
+	struct pci_dn *pdn;
 	u32 cfg_addr;
 	u64 buid;
 	int ret;
@@ -837,11 +838,10 @@ static int query_ddw(struct pci_dev *dev
 	 * Retrieve them from the pci device, not the node with the
 	 * dma-window property
 	 */
-	edev = pci_dev_to_eeh_dev(dev);
-	cfg_addr = edev->config_addr;
-	if (edev->pe_config_addr)
-		cfg_addr = edev->pe_config_addr;
-	buid = edev->phb->buid;
+	dn = pci_device_to_OF_node(dev);
+	pdn = PCI_DN(dn);
+	buid = pdn->phb->buid;
+	cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8));
 
 	ret = rtas_call(ddw_avail[0], 3, 5, (u32 *)query,
 		  cfg_addr, BUID_HI(buid), BUID_LO(buid));
@@ -855,7 +855,8 @@ static int create_ddw(struct pci_dev *de
 			struct ddw_create_response *create, int page_shift,
 			int window_shift)
 {
-	struct eeh_dev *edev;
+	struct device_node *dn;
+	struct pci_dn *pdn;
 	u32 cfg_addr;
 	u64 buid;
 	int ret;
@@ -866,11 +867,10 @@ static int create_ddw(struct pci_dev *de
 	 * Retrieve them from the pci device, not the node with the
 	 * dma-window property
 	 */
-	edev = pci_dev_to_eeh_dev(dev);
-	cfg_addr = edev->config_addr;
-	if (edev->pe_config_addr)
-		cfg_addr = edev->pe_config_addr;
-	buid = edev->phb->buid;
+	dn = pci_device_to_OF_node(dev);
+	pdn = PCI_DN(dn);
+	buid = pdn->phb->buid;
+	cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8));
 
 	do {
 		/* extra outputs are LIOBN and dma-addr (hi, lo) */
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/s390/include/asm/syscall.h linux-libre-3.14.74-gnu/arch/s390/include/asm/syscall.h
--- linux-libre-3.14.73-gnu/arch/s390/include/asm/syscall.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/s390/include/asm/syscall.h	2016-07-27 12:56:02.000000000 -0400
@@ -54,7 +54,7 @@ static inline void syscall_set_return_va
 					    struct pt_regs *regs,
 					    int error, long val)
 {
-	regs->gprs[2] = error ? -error : val;
+	regs->gprs[2] = error ? error : val;
 }
 
 static inline void syscall_get_arguments(struct task_struct *task,
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/x86/boot/Makefile linux-libre-3.14.74-gnu/arch/x86/boot/Makefile
--- linux-libre-3.14.73-gnu/arch/x86/boot/Makefile	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/x86/boot/Makefile	2016-07-27 12:56:02.000000000 -0400
@@ -156,6 +156,9 @@ isoimage: $(obj)/bzImage
 	for i in lib lib64 share end ; do \
 		if [ -f /usr/$$i/syslinux/isolinux.bin ] ; then \
 			cp /usr/$$i/syslinux/isolinux.bin $(obj)/isoimage ; \
+			if [ -f /usr/$$i/syslinux/ldlinux.c32 ]; then \
+				cp /usr/$$i/syslinux/ldlinux.c32 $(obj)/isoimage ; \
+			fi ; \
 			break ; \
 		fi ; \
 		if [ $$i = end ] ; then exit 1 ; fi ; \
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/x86/kernel/amd_nb.c linux-libre-3.14.74-gnu/arch/x86/kernel/amd_nb.c
--- linux-libre-3.14.73-gnu/arch/x86/kernel/amd_nb.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/x86/kernel/amd_nb.c	2016-07-27 12:56:02.000000000 -0400
@@ -67,8 +67,8 @@ int amd_cache_northbridges(void)
 	while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL)
 		i++;
 
-	if (i == 0)
-		return 0;
+	if (!i)
+		return -ENODEV;
 
 	nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL);
 	if (!nb)
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/x86/kernel/cpu/perf_event_intel.c linux-libre-3.14.74-gnu/arch/x86/kernel/cpu/perf_event_intel.c
--- linux-libre-3.14.73-gnu/arch/x86/kernel/cpu/perf_event_intel.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/x86/kernel/cpu/perf_event_intel.c	2016-07-27 12:56:02.000000000 -0400
@@ -2606,13 +2606,13 @@ __init int intel_pmu_init(void)
 		 * counter, so do not extend mask to generic counters
 		 */
 		for_each_event_constraint(c, x86_pmu.event_constraints) {
-			if (c->cmask != FIXED_EVENT_FLAGS
-			    || c->idxmsk64 == INTEL_PMC_MSK_FIXED_REF_CYCLES) {
-				continue;
+			if (c->cmask == FIXED_EVENT_FLAGS
+			    && c->idxmsk64 != INTEL_PMC_MSK_FIXED_REF_CYCLES) {
+				c->idxmsk64 |= (1ULL << x86_pmu.num_counters) - 1;
 			}
-
-			c->idxmsk64 |= (1ULL << x86_pmu.num_counters) - 1;
-			c->weight += x86_pmu.num_counters;
+			c->idxmsk64 &=
+				~(~0ULL << (INTEL_PMC_IDX_FIXED + x86_pmu.num_counters_fixed));
+			c->weight = hweight64(c->idxmsk64);
 		}
 	}
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/arch/x86/kernel/kprobes/core.c linux-libre-3.14.74-gnu/arch/x86/kernel/kprobes/core.c
--- linux-libre-3.14.73-gnu/arch/x86/kernel/kprobes/core.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/arch/x86/kernel/kprobes/core.c	2016-07-27 12:56:02.000000000 -0400
@@ -911,7 +911,19 @@ int __kprobes kprobe_fault_handler(struc
 		 * normal page fault.
 		 */
 		regs->ip = (unsigned long)cur->addr;
+		/*
+		 * Trap flag (TF) has been set here because this fault
+		 * happened where the single stepping will be done.
+		 * So clear it by resetting the current kprobe:
+		 */
+		regs->flags &= ~X86_EFLAGS_TF;
+
+		/*
+		 * If the TF flag was set before the kprobe hit,
+		 * don't touch it:
+		 */
 		regs->flags |= kcb->kprobe_old_flags;
+
 		if (kcb->kprobe_status == KPROBE_REENTER)
 			restore_previous_kprobe(kcb);
 		else
diff -druNp --no-dereference linux-libre-3.14.73-gnu/Documentation/scsi/scsi_eh.txt linux-libre-3.14.74-gnu/Documentation/scsi/scsi_eh.txt
--- linux-libre-3.14.73-gnu/Documentation/scsi/scsi_eh.txt	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/Documentation/scsi/scsi_eh.txt	2016-07-27 12:56:02.000000000 -0400
@@ -263,19 +263,23 @@ scmd->allowed.
 
  3. scmd recovered
     ACTION: scsi_eh_finish_cmd() is invoked to EH-finish scmd
-	- shost->host_failed--
 	- clear scmd->eh_eflags
 	- scsi_setup_cmd_retry()
 	- move from local eh_work_q to local eh_done_q
     LOCKING: none
+    CONCURRENCY: at most one thread per separate eh_work_q to
+		 keep queue manipulation lockless
 
  4. EH completes
     ACTION: scsi_eh_flush_done_q() retries scmds or notifies upper
-	    layer of failure.
+	    layer of failure. May be called concurrently but must have
+	    a no more than one thread per separate eh_work_q to
+	    manipulate the queue locklessly
 	- scmd is removed from eh_done_q and scmd->eh_entry is cleared
 	- if retry is necessary, scmd is requeued using
           scsi_queue_insert()
 	- otherwise, scsi_finish_command() is invoked for scmd
+	- zero shost->host_failed
     LOCKING: queue or finish function performs appropriate locking
 
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/ata/libata-eh.c linux-libre-3.14.74-gnu/drivers/ata/libata-eh.c
--- linux-libre-3.14.73-gnu/drivers/ata/libata-eh.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/ata/libata-eh.c	2016-07-27 12:56:02.000000000 -0400
@@ -604,7 +604,7 @@ void ata_scsi_error(struct Scsi_Host *ho
 	ata_scsi_port_error_handler(host, ap);
 
 	/* finish or retry handled scmd's and clean up */
-	WARN_ON(host->host_failed || !list_empty(&eh_work_q));
+	WARN_ON(!list_empty(&eh_work_q));
 
 	DPRINTK("EXIT\n");
 }
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/base/module.c linux-libre-3.14.74-gnu/drivers/base/module.c
--- linux-libre-3.14.73-gnu/drivers/base/module.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/base/module.c	2016-07-27 12:56:02.000000000 -0400
@@ -24,10 +24,12 @@ static char *make_driver_name(struct dev
 
 static void module_create_drivers_dir(struct module_kobject *mk)
 {
-	if (!mk || mk->drivers_dir)
-		return;
+	static DEFINE_MUTEX(drivers_dir_mutex);
 
-	mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj);
+	mutex_lock(&drivers_dir_mutex);
+	if (mk && !mk->drivers_dir)
+		mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj);
+	mutex_unlock(&drivers_dir_mutex);
 }
 
 void module_add_driver(struct module *mod, struct device_driver *drv)
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/crypto/ux500/hash/hash_core.c linux-libre-3.14.74-gnu/drivers/crypto/ux500/hash/hash_core.c
--- linux-libre-3.14.73-gnu/drivers/crypto/ux500/hash/hash_core.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/crypto/ux500/hash/hash_core.c	2016-07-27 12:56:02.000000000 -0400
@@ -797,7 +797,7 @@ static int hash_process_data(struct hash
 						&device_data->state);
 				memmove(req_ctx->state.buffer,
 					device_data->state.buffer,
-					HASH_BLOCK_SIZE / sizeof(u32));
+					HASH_BLOCK_SIZE);
 				if (ret) {
 					dev_err(device_data->dev,
 						"%s: hash_resume_state() failed!\n",
@@ -848,7 +848,7 @@ static int hash_process_data(struct hash
 
 			memmove(device_data->state.buffer,
 				req_ctx->state.buffer,
-				HASH_BLOCK_SIZE / sizeof(u32));
+				HASH_BLOCK_SIZE);
 			if (ret) {
 				dev_err(device_data->dev, "%s: hash_save_state() failed!\n",
 					__func__);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/gpu/drm/i915/intel_display.c linux-libre-3.14.74-gnu/drivers/gpu/drm/i915/intel_display.c
--- linux-libre-3.14.73-gnu/drivers/gpu/drm/i915/intel_display.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/gpu/drm/i915/intel_display.c	2016-07-27 12:56:02.000000000 -0400
@@ -5590,12 +5590,14 @@ static void ironlake_init_pch_refclk(str
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	struct drm_mode_config *mode_config = &dev->mode_config;
 	struct intel_encoder *encoder;
+	int i;
 	u32 val, final;
 	bool has_lvds = false;
 	bool has_cpu_edp = false;
 	bool has_panel = false;
 	bool has_ck505 = false;
 	bool can_ssc = false;
+	bool using_ssc_source = false;
 
 	/* We need to take the global config into account */
 	list_for_each_entry(encoder, &mode_config->encoder_list,
@@ -5621,8 +5623,22 @@ static void ironlake_init_pch_refclk(str
 		can_ssc = true;
 	}
 
-	DRM_DEBUG_KMS("has_panel %d has_lvds %d has_ck505 %d\n",
-		      has_panel, has_lvds, has_ck505);
+	/* Check if any DPLLs are using the SSC source */
+	for (i = 0; i < dev_priv->num_shared_dpll; i++) {
+		u32 temp = I915_READ(PCH_DPLL(i));
+
+		if (!(temp & DPLL_VCO_ENABLE))
+			continue;
+
+		if ((temp & PLL_REF_INPUT_MASK) ==
+		    PLLB_REF_INPUT_SPREADSPECTRUMIN) {
+			using_ssc_source = true;
+			break;
+		}
+	}
+
+	DRM_DEBUG_KMS("has_panel %d has_lvds %d has_ck505 %d using_ssc_source %d\n",
+		      has_panel, has_lvds, has_ck505, using_ssc_source);
 
 	/* Ironlake: try to setup display ref clock before DPLL
 	 * enabling. This is only under driver's control after
@@ -5659,9 +5675,9 @@ static void ironlake_init_pch_refclk(str
 				final |= DREF_CPU_SOURCE_OUTPUT_NONSPREAD;
 		} else
 			final |= DREF_CPU_SOURCE_OUTPUT_DISABLE;
-	} else {
-		final |= DREF_SSC_SOURCE_DISABLE;
-		final |= DREF_CPU_SOURCE_OUTPUT_DISABLE;
+	} else if (using_ssc_source) {
+		final |= DREF_SSC_SOURCE_ENABLE;
+		final |= DREF_SSC1_ENABLE;
 	}
 
 	if (final == val)
@@ -5708,7 +5724,7 @@ static void ironlake_init_pch_refclk(str
 		POSTING_READ(PCH_DREF_CONTROL);
 		udelay(200);
 	} else {
-		DRM_DEBUG_KMS("Disabling SSC entirely\n");
+		DRM_DEBUG_KMS("Disabling CPU source output\n");
 
 		val &= ~DREF_CPU_SOURCE_OUTPUT_MASK;
 
@@ -5719,16 +5735,20 @@ static void ironlake_init_pch_refclk(str
 		POSTING_READ(PCH_DREF_CONTROL);
 		udelay(200);
 
-		/* Turn off the SSC source */
-		val &= ~DREF_SSC_SOURCE_MASK;
-		val |= DREF_SSC_SOURCE_DISABLE;
+		if (!using_ssc_source) {
+			DRM_DEBUG_KMS("Disabling SSC source\n");
 
-		/* Turn off SSC1 */
-		val &= ~DREF_SSC1_ENABLE;
+			/* Turn off the SSC source */
+			val &= ~DREF_SSC_SOURCE_MASK;
+			val |= DREF_SSC_SOURCE_DISABLE;
 
-		I915_WRITE(PCH_DREF_CONTROL, val);
-		POSTING_READ(PCH_DREF_CONTROL);
-		udelay(200);
+			/* Turn off SSC1 */
+			val &= ~DREF_SSC1_ENABLE;
+
+			I915_WRITE(PCH_DREF_CONTROL, val);
+			POSTING_READ(PCH_DREF_CONTROL);
+			udelay(200);
+		}
 	}
 
 	BUG_ON(val != final);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/gpu/drm/radeon/radeon_device.c linux-libre-3.14.74-gnu/drivers/gpu/drm/radeon/radeon_device.c
--- linux-libre-3.14.73-gnu/drivers/gpu/drm/radeon/radeon_device.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/gpu/drm/radeon/radeon_device.c	2016-07-27 12:56:02.000000000 -0400
@@ -548,6 +548,23 @@ void radeon_gtt_location(struct radeon_d
 /*
  * GPU helpers function.
  */
+
+/**
+ * radeon_device_is_virtual - check if we are running is a virtual environment
+ *
+ * Check if the asic has been passed through to a VM (all asics).
+ * Used at driver startup.
+ * Returns true if virtual or false if not.
+ */
+static bool radeon_device_is_virtual(void)
+{
+#ifdef CONFIG_X86
+	return boot_cpu_has(X86_FEATURE_HYPERVISOR);
+#else
+	return false;
+#endif
+}
+
 /**
  * radeon_card_posted - check if the hw has already been initialized
  *
@@ -561,6 +578,10 @@ bool radeon_card_posted(struct radeon_de
 {
 	uint32_t reg;
 
+	/* for pass through, always force asic_init */
+	if (radeon_device_is_virtual())
+		return false;
+
 	/* required for EFI mode on macbook2,1 which uses an r5xx asic */
 	if (efi_enabled(EFI_BOOT) &&
 	    (rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) &&
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/hid/hid-elo.c linux-libre-3.14.74-gnu/drivers/hid/hid-elo.c
--- linux-libre-3.14.73-gnu/drivers/hid/hid-elo.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/hid/hid-elo.c	2016-07-27 12:56:02.000000000 -0400
@@ -259,7 +259,7 @@ static void elo_remove(struct hid_device
 	struct elo_priv *priv = hid_get_drvdata(hdev);
 
 	hid_hw_stop(hdev);
-	flush_workqueue(wq);
+	cancel_delayed_work_sync(&priv->work);
 	kfree(priv);
 }
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/hid/usbhid/hiddev.c linux-libre-3.14.74-gnu/drivers/hid/usbhid/hiddev.c
--- linux-libre-3.14.73-gnu/drivers/hid/usbhid/hiddev.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/hid/usbhid/hiddev.c	2016-07-27 12:56:02.000000000 -0400
@@ -516,13 +516,13 @@ static noinline int hiddev_ioctl_usage(s
 					goto inval;
 			} else if (uref->usage_index >= field->report_count)
 				goto inval;
-
-			else if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) &&
-				 (uref_multi->num_values > HID_MAX_MULTI_USAGES ||
-				  uref->usage_index + uref_multi->num_values > field->report_count))
-				goto inval;
 		}
 
+		if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) &&
+		    (uref_multi->num_values > HID_MAX_MULTI_USAGES ||
+		     uref->usage_index + uref_multi->num_values > field->report_count))
+			goto inval;
+
 		switch (cmd) {
 		case HIDIOCGUSAGE:
 			uref->value = field->value[uref->usage_index];
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/iio/accel/kxsd9.c linux-libre-3.14.74-gnu/drivers/iio/accel/kxsd9.c
--- linux-libre-3.14.73-gnu/drivers/iio/accel/kxsd9.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/iio/accel/kxsd9.c	2016-07-27 12:56:02.000000000 -0400
@@ -81,7 +81,7 @@ static int kxsd9_write_scale(struct iio_
 
 	mutex_lock(&st->buf_lock);
 	ret = spi_w8r8(st->us, KXSD9_READ(KXSD9_REG_CTRL_C));
-	if (ret)
+	if (ret < 0)
 		goto error_ret;
 	st->tx[0] = KXSD9_WRITE(KXSD9_REG_CTRL_C);
 	st->tx[1] = (ret & ~KXSD9_FS_MASK) | i;
@@ -163,7 +163,7 @@ static int kxsd9_read_raw(struct iio_dev
 		break;
 	case IIO_CHAN_INFO_SCALE:
 		ret = spi_w8r8(st->us, KXSD9_READ(KXSD9_REG_CTRL_C));
-		if (ret)
+		if (ret < 0)
 			goto error_ret;
 		*val2 = kxsd9_micro_scales[ret & KXSD9_FS_MASK];
 		ret = IIO_VAL_INT_PLUS_MICRO;
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/iio/adc/ad7266.c linux-libre-3.14.74-gnu/drivers/iio/adc/ad7266.c
--- linux-libre-3.14.73-gnu/drivers/iio/adc/ad7266.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/iio/adc/ad7266.c	2016-07-27 12:56:02.000000000 -0400
@@ -396,8 +396,8 @@ static int ad7266_probe(struct spi_devic
 
 	st = iio_priv(indio_dev);
 
-	st->reg = devm_regulator_get(&spi->dev, "vref");
-	if (!IS_ERR_OR_NULL(st->reg)) {
+	st->reg = devm_regulator_get_optional(&spi->dev, "vref");
+	if (!IS_ERR(st->reg)) {
 		ret = regulator_enable(st->reg);
 		if (ret)
 			return ret;
@@ -408,6 +408,9 @@ static int ad7266_probe(struct spi_devic
 
 		st->vref_mv = ret / 1000;
 	} else {
+		/* Any other error indicates that the regulator does exist */
+		if (PTR_ERR(st->reg) != -ENODEV)
+			return PTR_ERR(st->reg);
 		/* Use internal reference */
 		st->vref_mv = 2500;
 	}
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/iio/industrialio-trigger.c linux-libre-3.14.74-gnu/drivers/iio/industrialio-trigger.c
--- linux-libre-3.14.73-gnu/drivers/iio/industrialio-trigger.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/iio/industrialio-trigger.c	2016-07-27 12:56:02.000000000 -0400
@@ -205,22 +205,35 @@ static int iio_trigger_attach_poll_func(
 
 	/* Prevent the module from being removed whilst attached to a trigger */
 	__module_get(pf->indio_dev->info->driver_module);
+
+	/* Get irq number */
 	pf->irq = iio_trigger_get_irq(trig);
+	if (pf->irq < 0)
+		goto out_put_module;
+
+	/* Request irq */
 	ret = request_threaded_irq(pf->irq, pf->h, pf->thread,
 				   pf->type, pf->name,
 				   pf);
-	if (ret < 0) {
-		module_put(pf->indio_dev->info->driver_module);
-		return ret;
-	}
+	if (ret < 0)
+		goto out_put_irq;
 
+	/* Enable trigger in driver */
 	if (trig->ops && trig->ops->set_trigger_state && notinuse) {
 		ret = trig->ops->set_trigger_state(trig, true);
 		if (ret < 0)
-			module_put(pf->indio_dev->info->driver_module);
+			goto out_free_irq;
 	}
 
 	return ret;
+
+out_free_irq:
+	free_irq(pf->irq, pf);
+out_put_irq:
+	iio_trigger_put_irq(trig, pf->irq);
+out_put_module:
+	module_put(pf->indio_dev->info->driver_module);
+	return ret;
 }
 
 static int iio_trigger_detach_poll_func(struct iio_trigger *trig,
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/infiniband/hw/mlx4/ah.c linux-libre-3.14.74-gnu/drivers/infiniband/hw/mlx4/ah.c
--- linux-libre-3.14.73-gnu/drivers/infiniband/hw/mlx4/ah.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/infiniband/hw/mlx4/ah.c	2016-07-27 12:56:02.000000000 -0400
@@ -46,6 +46,7 @@ static struct ib_ah *create_ib_ah(struct
 
 	ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24));
 	ah->av.ib.g_slid  = ah_attr->src_path_bits;
+	ah->av.ib.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28);
 	if (ah_attr->ah_flags & IB_AH_GRH) {
 		ah->av.ib.g_slid   |= 0x80;
 		ah->av.ib.gid_index = ah_attr->grh.sgid_index;
@@ -63,7 +64,6 @@ static struct ib_ah *create_ib_ah(struct
 		       !(1 << ah->av.ib.stat_rate & dev->caps.stat_rate_support))
 			--ah->av.ib.stat_rate;
 	}
-	ah->av.ib.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28);
 
 	return &ah->ibah;
 }
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/net/ethernet/atheros/alx/main.c linux-libre-3.14.74-gnu/drivers/net/ethernet/atheros/alx/main.c
--- linux-libre-3.14.73-gnu/drivers/net/ethernet/atheros/alx/main.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/net/ethernet/atheros/alx/main.c	2016-07-27 12:56:02.000000000 -0400
@@ -86,9 +86,14 @@ static int alx_refill_rx_ring(struct alx
 	while (!cur_buf->skb && next != rxq->read_idx) {
 		struct alx_rfd *rfd = &rxq->rfd[cur];
 
-		skb = __netdev_alloc_skb(alx->dev, alx->rxbuf_size, gfp);
+		skb = __netdev_alloc_skb(alx->dev, alx->rxbuf_size + 64, gfp);
 		if (!skb)
 			break;
+
+		/* Workround for the HW RX DMA overflow issue */
+		if (((unsigned long)skb->data & 0xfff) == 0xfc0)
+			skb_reserve(skb, 64);
+
 		dma = dma_map_single(&alx->hw.pdev->dev,
 				     skb->data, alx->rxbuf_size,
 				     DMA_FROM_DEVICE);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/net/usb/cdc_ncm.c linux-libre-3.14.74-gnu/drivers/net/usb/cdc_ncm.c
--- linux-libre-3.14.73-gnu/drivers/net/usb/cdc_ncm.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/net/usb/cdc_ncm.c	2016-07-27 12:56:02.000000000 -0400
@@ -438,6 +438,13 @@ advance:
 	if (cdc_ncm_setup(dev))
 		goto error2;
 
+	/* Some firmwares need a pause here or they will silently fail
+	 * to set up the interface properly.  This value was decided
+	 * empirically on a Sierra Wireless MC7455 running 02.08.02.00
+	 * firmware.
+	 */
+	usleep_range(10000, 20000);
+
 	/* configure data interface */
 	temp = usb_set_interface(dev->udev, iface_no, data_altsetting);
 	if (temp) {
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/net/wireless/mac80211_hwsim.c linux-libre-3.14.74-gnu/drivers/net/wireless/mac80211_hwsim.c
--- linux-libre-3.14.73-gnu/drivers/net/wireless/mac80211_hwsim.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/net/wireless/mac80211_hwsim.c	2016-07-27 12:56:02.000000000 -0400
@@ -2251,6 +2251,7 @@ static int hwsim_tx_info_frame_received_
 	if (!info->attrs[HWSIM_ATTR_ADDR_TRANSMITTER] ||
 	    !info->attrs[HWSIM_ATTR_FLAGS] ||
 	    !info->attrs[HWSIM_ATTR_COOKIE] ||
+	    !info->attrs[HWSIM_ATTR_SIGNAL] ||
 	    !info->attrs[HWSIM_ATTR_TX_INFO])
 		goto out;
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/scsi/scsi_error.c linux-libre-3.14.74-gnu/drivers/scsi/scsi_error.c
--- linux-libre-3.14.73-gnu/drivers/scsi/scsi_error.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/scsi/scsi_error.c	2016-07-27 12:56:02.000000000 -0400
@@ -1111,7 +1111,6 @@ static int scsi_eh_action(struct scsi_cm
  */
 void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q)
 {
-	scmd->device->host->host_failed--;
 	scmd->eh_eflags = 0;
 	list_move_tail(&scmd->eh_entry, done_q);
 }
@@ -2193,6 +2192,9 @@ int scsi_error_handler(void *data)
 		else
 			scsi_unjam_host(shost);
 
+		/* All scmds have been handled */
+		shost->host_failed = 0;
+
 		/*
 		 * Note - if the above fails completely, the action is to take
 		 * individual devices offline and flush the queue of any
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/staging/iio/accel/sca3000_core.c linux-libre-3.14.74-gnu/drivers/staging/iio/accel/sca3000_core.c
--- linux-libre-3.14.73-gnu/drivers/staging/iio/accel/sca3000_core.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/staging/iio/accel/sca3000_core.c	2016-07-27 12:56:02.000000000 -0400
@@ -592,7 +592,7 @@ static ssize_t sca3000_read_frequency(st
 		goto error_ret_mut;
 	ret = sca3000_read_ctrl_reg(st, SCA3000_REG_CTRL_SEL_OUT_CTRL);
 	mutex_unlock(&st->lock);
-	if (ret)
+	if (ret < 0)
 		goto error_ret;
 	val = ret;
 	if (base_freq > 0)
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/tty/vt/keyboard.c linux-libre-3.14.74-gnu/drivers/tty/vt/keyboard.c
--- linux-libre-3.14.73-gnu/drivers/tty/vt/keyboard.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/tty/vt/keyboard.c	2016-07-27 12:56:02.000000000 -0400
@@ -365,34 +365,22 @@ static void to_utf8(struct vc_data *vc,
 
 static void do_compute_shiftstate(void)
 {
-	unsigned int i, j, k, sym, val;
+	unsigned int k, sym, val;
 
 	shift_state = 0;
 	memset(shift_down, 0, sizeof(shift_down));
 
-	for (i = 0; i < ARRAY_SIZE(key_down); i++) {
-
-		if (!key_down[i])
+	for_each_set_bit(k, key_down, min(NR_KEYS, KEY_CNT)) {
+		sym = U(key_maps[0][k]);
+		if (KTYP(sym) != KT_SHIFT && KTYP(sym) != KT_SLOCK)
 			continue;
 
-		k = i * BITS_PER_LONG;
-
-		for (j = 0; j < BITS_PER_LONG; j++, k++) {
-
-			if (!test_bit(k, key_down))
-				continue;
-
-			sym = U(key_maps[0][k]);
-			if (KTYP(sym) != KT_SHIFT && KTYP(sym) != KT_SLOCK)
-				continue;
-
-			val = KVAL(sym);
-			if (val == KVAL(K_CAPSSHIFT))
-				val = KVAL(K_SHIFT);
+		val = KVAL(sym);
+		if (val == KVAL(K_CAPSSHIFT))
+			val = KVAL(K_SHIFT);
 
-			shift_down[val]++;
-			shift_state |= (1 << val);
-		}
+		shift_down[val]++;
+		shift_state |= BIT(val);
 	}
 }
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/usb/core/quirks.c linux-libre-3.14.74-gnu/drivers/usb/core/quirks.c
--- linux-libre-3.14.73-gnu/drivers/usb/core/quirks.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/usb/core/quirks.c	2016-07-27 12:56:02.000000000 -0400
@@ -205,6 +205,9 @@ static const struct usb_device_id usb_am
 	/* Logitech Optical Mouse M90/M100 */
 	{ USB_DEVICE(0x046d, 0xc05a), .driver_info = USB_QUIRK_RESET_RESUME },
 
+	/* Acer C120 LED Projector */
+	{ USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
+
 	/* Blackmagic Design Intensity Shuttle */
 	{ USB_DEVICE(0x1edb, 0xbd3b), .driver_info = USB_QUIRK_NO_LPM },
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/usb/musb/musb_host.c linux-libre-3.14.74-gnu/drivers/usb/musb/musb_host.c
--- linux-libre-3.14.73-gnu/drivers/usb/musb/musb_host.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/usb/musb/musb_host.c	2016-07-27 12:56:02.000000000 -0400
@@ -583,14 +583,13 @@ musb_rx_reinit(struct musb *musb, struct
 		musb_writew(ep->regs, MUSB_TXCSR, 0);
 
 	/* scrub all previous state, clearing toggle */
-	} else {
-		csr = musb_readw(ep->regs, MUSB_RXCSR);
-		if (csr & MUSB_RXCSR_RXPKTRDY)
-			WARNING("rx%d, packet/%d ready?\n", ep->epnum,
-				musb_readw(ep->regs, MUSB_RXCOUNT));
-
-		musb_h_flush_rxfifo(ep, MUSB_RXCSR_CLRDATATOG);
 	}
+	csr = musb_readw(ep->regs, MUSB_RXCSR);
+	if (csr & MUSB_RXCSR_RXPKTRDY)
+		WARNING("rx%d, packet/%d ready?\n", ep->epnum,
+			musb_readw(ep->regs, MUSB_RXCOUNT));
+
+	musb_h_flush_rxfifo(ep, MUSB_RXCSR_CLRDATATOG);
 
 	/* target addr and (for multipoint) hub addr/port */
 	if (musb->is_multipoint) {
@@ -950,9 +949,15 @@ static void musb_bulk_nak_timeout(struct
 	if (is_in) {
 		dma = is_dma_capable() ? ep->rx_channel : NULL;
 
-		/* clear nak timeout bit */
+		/*
+		 * Need to stop the transaction by clearing REQPKT first
+		 * then the NAK Timeout bit ref MUSBMHDRC USB 2.0 HIGH-SPEED
+		 * DUAL-ROLE CONTROLLER Programmer's Guide, section 9.2.2
+		 */
 		rx_csr = musb_readw(epio, MUSB_RXCSR);
 		rx_csr |= MUSB_RXCSR_H_WZC_BITS;
+		rx_csr &= ~MUSB_RXCSR_H_REQPKT;
+		musb_writew(epio, MUSB_RXCSR, rx_csr);
 		rx_csr &= ~MUSB_RXCSR_DATAERROR;
 		musb_writew(epio, MUSB_RXCSR, rx_csr);
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/drivers/xen/xen-acpi-processor.c linux-libre-3.14.74-gnu/drivers/xen/xen-acpi-processor.c
--- linux-libre-3.14.73-gnu/drivers/xen/xen-acpi-processor.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/drivers/xen/xen-acpi-processor.c	2016-07-27 12:56:02.000000000 -0400
@@ -423,36 +423,7 @@ upload:
 
 	return 0;
 }
-static int __init check_prereq(void)
-{
-	struct cpuinfo_x86 *c = &cpu_data(0);
-
-	if (!xen_initial_domain())
-		return -ENODEV;
-
-	if (!acpi_gbl_FADT.smi_command)
-		return -ENODEV;
 
-	if (c->x86_vendor == X86_VENDOR_INTEL) {
-		if (!cpu_has(c, X86_FEATURE_EST))
-			return -ENODEV;
-
-		return 0;
-	}
-	if (c->x86_vendor == X86_VENDOR_AMD) {
-		/* Copied from powernow-k8.h, can't include ../cpufreq/powernow
-		 * as we get compile warnings for the static functions.
-		 */
-#define CPUID_FREQ_VOLT_CAPABILITIES    0x80000007
-#define USE_HW_PSTATE                   0x00000080
-		u32 eax, ebx, ecx, edx;
-		cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx);
-		if ((edx & USE_HW_PSTATE) != USE_HW_PSTATE)
-			return -ENODEV;
-		return 0;
-	}
-	return -ENODEV;
-}
 /* acpi_perf_data is a pointer to percpu data. */
 static struct acpi_processor_performance __percpu *acpi_perf_data;
 
@@ -508,10 +479,10 @@ static struct syscore_ops xap_syscore_op
 static int __init xen_acpi_processor_init(void)
 {
 	unsigned int i;
-	int rc = check_prereq();
+	int rc;
 
-	if (rc)
-		return rc;
+	if (!xen_initial_domain())
+		return -ENODEV;
 
 	nr_acpi_bits = get_max_acpi_id() + 1;
 	acpi_ids_done = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/cifs/connect.c linux-libre-3.14.74-gnu/fs/cifs/connect.c
--- linux-libre-3.14.73-gnu/fs/cifs/connect.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/cifs/connect.c	2016-07-27 12:56:02.000000000 -0400
@@ -410,7 +410,9 @@ cifs_echo_request(struct work_struct *wo
 	 * server->ops->need_neg() == true. Also, no need to ping if
 	 * we got a response recently.
 	 */
-	if (!server->ops->need_neg || server->ops->need_neg(server) ||
+
+	if (server->tcpStatus == CifsNeedReconnect ||
+	    server->tcpStatus == CifsExiting || server->tcpStatus == CifsNew ||
 	    (server->ops->can_echo && !server->ops->can_echo(server)) ||
 	    time_before(jiffies, server->lstrp + SMB_ECHO_INTERVAL - HZ))
 		goto requeue_echo;
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/cifs/smb2pdu.c linux-libre-3.14.74-gnu/fs/cifs/smb2pdu.c
--- linux-libre-3.14.73-gnu/fs/cifs/smb2pdu.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/cifs/smb2pdu.c	2016-07-27 12:56:02.000000000 -0400
@@ -1590,6 +1590,33 @@ SMB2_echo(struct TCP_Server_Info *server
 
 	cifs_dbg(FYI, "In echo request\n");
 
+	if (server->tcpStatus == CifsNeedNegotiate) {
+		struct list_head *tmp, *tmp2;
+		struct cifs_ses *ses;
+		struct cifs_tcon *tcon;
+
+		cifs_dbg(FYI, "Need negotiate, reconnecting tcons\n");
+		spin_lock(&cifs_tcp_ses_lock);
+		list_for_each(tmp, &server->smb_ses_list) {
+			ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
+			list_for_each(tmp2, &ses->tcon_list) {
+				tcon = list_entry(tmp2, struct cifs_tcon,
+						  tcon_list);
+				/* add check for persistent handle reconnect */
+				if (tcon && tcon->need_reconnect) {
+					spin_unlock(&cifs_tcp_ses_lock);
+					rc = smb2_reconnect(SMB2_ECHO, tcon);
+					spin_lock(&cifs_tcp_ses_lock);
+				}
+			}
+		}
+		spin_unlock(&cifs_tcp_ses_lock);
+	}
+
+	/* if no session, renegotiate failed above */
+	if (server->tcpStatus == CifsNeedNegotiate)
+		return -EIO;
+
 	rc = small_smb2_init(SMB2_ECHO, NULL, (void **)&req);
 	if (rc)
 		return rc;
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/nfs/dir.c linux-libre-3.14.74-gnu/fs/nfs/dir.c
--- linux-libre-3.14.73-gnu/fs/nfs/dir.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/nfs/dir.c	2016-07-27 12:56:02.000000000 -0400
@@ -1459,9 +1459,9 @@ int nfs_atomic_open(struct inode *dir, s
 		err = PTR_ERR(inode);
 		trace_nfs_atomic_open_exit(dir, ctx, open_flags, err);
 		put_nfs_open_context(ctx);
+		d_drop(dentry);
 		switch (err) {
 		case -ENOENT:
-			d_drop(dentry);
 			d_add(dentry, NULL);
 			break;
 		case -EISDIR:
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/nfs/nfs4proc.c linux-libre-3.14.74-gnu/fs/nfs/nfs4proc.c
--- linux-libre-3.14.73-gnu/fs/nfs/nfs4proc.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/nfs/nfs4proc.c	2016-07-27 12:56:02.000000000 -0400
@@ -2583,12 +2583,11 @@ static void nfs4_close_prepare(struct rp
 			call_close |= is_wronly;
 		else if (is_wronly)
 			calldata->arg.fmode |= FMODE_WRITE;
+		if (calldata->arg.fmode != (FMODE_READ|FMODE_WRITE))
+			call_close |= is_rdwr;
 	} else if (is_rdwr)
 		calldata->arg.fmode |= FMODE_READ|FMODE_WRITE;
 
-	if (calldata->arg.fmode == 0)
-		call_close |= is_rdwr;
-
 	if (!nfs4_valid_open_stateid(state))
 		call_close = 0;
 	spin_unlock(&state->owner->so_lock);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/nfsd/nfs2acl.c linux-libre-3.14.74-gnu/fs/nfsd/nfs2acl.c
--- linux-libre-3.14.73-gnu/fs/nfsd/nfs2acl.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/nfsd/nfs2acl.c	2016-07-27 12:56:02.000000000 -0400
@@ -104,22 +104,21 @@ static __be32 nfsacld_proc_setacl(struct
 		goto out;
 
 	inode = fh->fh_dentry->d_inode;
-	if (!IS_POSIXACL(inode) || !inode->i_op->set_acl) {
-		error = -EOPNOTSUPP;
-		goto out_errno;
-	}
 
 	error = fh_want_write(fh);
 	if (error)
 		goto out_errno;
 
-	error = inode->i_op->set_acl(inode, argp->acl_access, ACL_TYPE_ACCESS);
+	fh_lock(fh);
+
+	error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access);
 	if (error)
-		goto out_drop_write;
-	error = inode->i_op->set_acl(inode, argp->acl_default,
-				     ACL_TYPE_DEFAULT);
+		goto out_drop_lock;
+	error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default);
 	if (error)
-		goto out_drop_write;
+		goto out_drop_lock;
+
+	fh_unlock(fh);
 
 	fh_drop_write(fh);
 
@@ -131,7 +130,8 @@ out:
 	posix_acl_release(argp->acl_access);
 	posix_acl_release(argp->acl_default);
 	return nfserr;
-out_drop_write:
+out_drop_lock:
+	fh_unlock(fh);
 	fh_drop_write(fh);
 out_errno:
 	nfserr = nfserrno(error);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/nfsd/nfs3acl.c linux-libre-3.14.74-gnu/fs/nfsd/nfs3acl.c
--- linux-libre-3.14.73-gnu/fs/nfsd/nfs3acl.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/nfsd/nfs3acl.c	2016-07-27 12:56:02.000000000 -0400
@@ -95,22 +95,20 @@ static __be32 nfsd3_proc_setacl(struct s
 		goto out;
 
 	inode = fh->fh_dentry->d_inode;
-	if (!IS_POSIXACL(inode) || !inode->i_op->set_acl) {
-		error = -EOPNOTSUPP;
-		goto out_errno;
-	}
 
 	error = fh_want_write(fh);
 	if (error)
 		goto out_errno;
 
-	error = inode->i_op->set_acl(inode, argp->acl_access, ACL_TYPE_ACCESS);
+	fh_lock(fh);
+
+	error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access);
 	if (error)
-		goto out_drop_write;
-	error = inode->i_op->set_acl(inode, argp->acl_default,
-				     ACL_TYPE_DEFAULT);
+		goto out_drop_lock;
+	error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default);
 
-out_drop_write:
+out_drop_lock:
+	fh_unlock(fh);
 	fh_drop_write(fh);
 out_errno:
 	nfserr = nfserrno(error);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/nfsd/nfs4acl.c linux-libre-3.14.74-gnu/fs/nfsd/nfs4acl.c
--- linux-libre-3.14.73-gnu/fs/nfsd/nfs4acl.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/nfsd/nfs4acl.c	2016-07-27 12:56:02.000000000 -0400
@@ -818,9 +818,6 @@ nfsd4_set_nfs4_acl(struct svc_rqst *rqst
 	dentry = fhp->fh_dentry;
 	inode = dentry->d_inode;
 
-	if (!inode->i_op->set_acl || !IS_POSIXACL(inode))
-		return nfserr_attrnotsupp;
-
 	if (S_ISDIR(inode->i_mode))
 		flags = NFS4_ACL_DIR;
 
@@ -830,16 +827,19 @@ nfsd4_set_nfs4_acl(struct svc_rqst *rqst
 	if (host_error < 0)
 		goto out_nfserr;
 
-	host_error = inode->i_op->set_acl(inode, pacl, ACL_TYPE_ACCESS);
+	fh_lock(fhp);
+
+	host_error = set_posix_acl(inode, ACL_TYPE_ACCESS, pacl);
 	if (host_error < 0)
-		goto out_release;
+		goto out_drop_lock;
 
 	if (S_ISDIR(inode->i_mode)) {
-		host_error = inode->i_op->set_acl(inode, dpacl,
-						  ACL_TYPE_DEFAULT);
+		host_error = set_posix_acl(inode, ACL_TYPE_DEFAULT, dpacl);
 	}
 
-out_release:
+out_drop_lock:
+	fh_unlock(fhp);
+
 	posix_acl_release(pacl);
 	posix_acl_release(dpacl);
 out_nfserr:
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/posix_acl.c linux-libre-3.14.74-gnu/fs/posix_acl.c
--- linux-libre-3.14.73-gnu/fs/posix_acl.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/posix_acl.c	2016-07-27 12:56:02.000000000 -0400
@@ -787,38 +787,42 @@ posix_acl_xattr_get(struct dentry *dentr
 	return error;
 }
 
-static int
-posix_acl_xattr_set(struct dentry *dentry, const char *name,
-		const void *value, size_t size, int flags, int type)
+int
+set_posix_acl(struct inode *inode, int type, struct posix_acl *acl)
 {
-	struct inode *inode = dentry->d_inode;
-	struct posix_acl *acl = NULL;
-	int ret;
-
 	if (!IS_POSIXACL(inode))
 		return -EOPNOTSUPP;
 	if (!inode->i_op->set_acl)
 		return -EOPNOTSUPP;
 
 	if (type == ACL_TYPE_DEFAULT && !S_ISDIR(inode->i_mode))
-		return value ? -EACCES : 0;
+		return acl ? -EACCES : 0;
 	if (!inode_owner_or_capable(inode))
 		return -EPERM;
 
+	if (acl) {
+		int ret = posix_acl_valid(acl);
+		if (ret)
+			return ret;
+	}
+	return inode->i_op->set_acl(inode, acl, type);
+}
+EXPORT_SYMBOL(set_posix_acl);
+
+static int
+posix_acl_xattr_set(struct dentry *dentry, const char *name,
+		const void *value, size_t size, int flags, int type)
+{
+	struct inode *inode = dentry->d_inode;
+	struct posix_acl *acl = NULL;
+	int ret;
+
 	if (value) {
 		acl = posix_acl_from_xattr(&init_user_ns, value, size);
 		if (IS_ERR(acl))
 			return PTR_ERR(acl);
-
-		if (acl) {
-			ret = posix_acl_valid(acl);
-			if (ret)
-				goto out;
-		}
 	}
-
-	ret = inode->i_op->set_acl(inode, acl, type);
-out:
+	ret = set_posix_acl(inode, type, acl);
 	posix_acl_release(acl);
 	return ret;
 }
diff -druNp --no-dereference linux-libre-3.14.73-gnu/fs/ubifs/file.c linux-libre-3.14.74-gnu/fs/ubifs/file.c
--- linux-libre-3.14.73-gnu/fs/ubifs/file.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/fs/ubifs/file.c	2016-07-27 12:56:02.000000000 -0400
@@ -54,6 +54,7 @@
 #include <linux/mount.h>
 #include <linux/namei.h>
 #include <linux/slab.h>
+#include <linux/migrate.h>
 
 static int read_block(struct inode *inode, void *addr, unsigned int block,
 		      struct ubifs_data_node *dn)
@@ -1423,6 +1424,26 @@ static int ubifs_set_page_dirty(struct p
 	return ret;
 }
 
+#ifdef CONFIG_MIGRATION
+static int ubifs_migrate_page(struct address_space *mapping,
+		struct page *newpage, struct page *page, enum migrate_mode mode)
+{
+	int rc;
+
+	rc = migrate_page_move_mapping(mapping, newpage, page, NULL, mode, 0);
+	if (rc != MIGRATEPAGE_SUCCESS)
+		return rc;
+
+	if (PagePrivate(page)) {
+		ClearPagePrivate(page);
+		SetPagePrivate(newpage);
+	}
+
+	migrate_page_copy(newpage, page);
+	return MIGRATEPAGE_SUCCESS;
+}
+#endif
+
 static int ubifs_releasepage(struct page *page, gfp_t unused_gfp_flags)
 {
 	/*
@@ -1559,6 +1580,9 @@ const struct address_space_operations ub
 	.write_end      = ubifs_write_end,
 	.invalidatepage = ubifs_invalidatepage,
 	.set_page_dirty = ubifs_set_page_dirty,
+#ifdef CONFIG_MIGRATION
+	.migratepage	= ubifs_migrate_page,
+#endif
 	.releasepage    = ubifs_releasepage,
 };
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/include/linux/usb/ehci_def.h linux-libre-3.14.74-gnu/include/linux/usb/ehci_def.h
--- linux-libre-3.14.73-gnu/include/linux/usb/ehci_def.h	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/include/linux/usb/ehci_def.h	2016-07-27 12:56:02.000000000 -0400
@@ -178,11 +178,11 @@ struct ehci_regs {
  * PORTSCx
  */
 	/* HOSTPC: offset 0x84 */
-	u32		hostpc[1];	/* HOSTPC extension */
+	u32		hostpc[0];	/* HOSTPC extension */
 #define HOSTPC_PHCD	(1<<22)		/* Phy clock disable */
 #define HOSTPC_PSPD	(3<<25)		/* Port speed detection */
 
-	u32		reserved5[16];
+	u32		reserved5[17];
 
 	/* USBMODE_EX: offset 0xc8 */
 	u32		usbmode_ex;	/* USB Device mode extension */
diff -druNp --no-dereference linux-libre-3.14.73-gnu/kernel/signal.c linux-libre-3.14.74-gnu/kernel/signal.c
--- linux-libre-3.14.73-gnu/kernel/signal.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/kernel/signal.c	2016-07-27 12:56:02.000000000 -0400
@@ -3004,11 +3004,9 @@ static int do_rt_sigqueueinfo(pid_t pid,
 	 * Nor can they impersonate a kill()/tgkill(), which adds source info.
 	 */
 	if ((info->si_code >= 0 || info->si_code == SI_TKILL) &&
-	    (task_pid_vnr(current) != pid)) {
-		/* We used to allow any < 0 si_code */
-		WARN_ON_ONCE(info->si_code < 0);
+	    (task_pid_vnr(current) != pid))
 		return -EPERM;
-	}
+
 	info->si_signo = sig;
 
 	/* POSIX.1b doesn't mention process groups.  */
@@ -3053,12 +3051,10 @@ static int do_rt_tgsigqueueinfo(pid_t tg
 	/* Not even root can pretend to send signals from the kernel.
 	 * Nor can they impersonate a kill()/tgkill(), which adds source info.
 	 */
-	if (((info->si_code >= 0 || info->si_code == SI_TKILL)) &&
-	    (task_pid_vnr(current) != pid)) {
-		/* We used to allow any < 0 si_code */
-		WARN_ON_ONCE(info->si_code < 0);
+	if ((info->si_code >= 0 || info->si_code == SI_TKILL) &&
+	    (task_pid_vnr(current) != pid))
 		return -EPERM;
-	}
+
 	info->si_signo = sig;
 
 	return do_send_specific(tgid, pid, sig, info);
diff -druNp --no-dereference linux-libre-3.14.73-gnu/kernel/trace/trace_printk.c linux-libre-3.14.74-gnu/kernel/trace/trace_printk.c
--- linux-libre-3.14.73-gnu/kernel/trace/trace_printk.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/kernel/trace/trace_printk.c	2016-07-27 12:56:02.000000000 -0400
@@ -38,6 +38,10 @@ struct trace_bprintk_fmt {
 static inline struct trace_bprintk_fmt *lookup_format(const char *fmt)
 {
 	struct trace_bprintk_fmt *pos;
+
+	if (!fmt)
+		return ERR_PTR(-EINVAL);
+
 	list_for_each_entry(pos, &trace_bprintk_fmt_list, list) {
 		if (!strcmp(pos->fmt, fmt))
 			return pos;
@@ -59,7 +63,8 @@ void hold_module_trace_bprintk_format(co
 	for (iter = start; iter < end; iter++) {
 		struct trace_bprintk_fmt *tb_fmt = lookup_format(*iter);
 		if (tb_fmt) {
-			*iter = tb_fmt->fmt;
+			if (!IS_ERR(tb_fmt))
+				*iter = tb_fmt->fmt;
 			continue;
 		}
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/Makefile linux-libre-3.14.74-gnu/Makefile
--- linux-libre-3.14.73-gnu/Makefile	2016-06-24 16:50:53.000000000 -0400
+++ linux-libre-3.14.74-gnu/Makefile	2016-07-27 23:58:52.000000000 -0400
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 14
-SUBLEVEL = 73
+SUBLEVEL = 74
 EXTRAVERSION =-gnu
 NAME = Remembering Coco
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/mm/migrate.c linux-libre-3.14.74-gnu/mm/migrate.c
--- linux-libre-3.14.73-gnu/mm/migrate.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/mm/migrate.c	2016-07-27 12:56:02.000000000 -0400
@@ -423,6 +423,7 @@ int migrate_page_move_mapping(struct add
 
 	return MIGRATEPAGE_SUCCESS;
 }
+EXPORT_SYMBOL(migrate_page_move_mapping);
 
 /*
  * The expected number of remaining references is the same as that
@@ -582,6 +583,7 @@ void migrate_page_copy(struct page *newp
 	if (PageWriteback(newpage))
 		end_page_writeback(newpage);
 }
+EXPORT_SYMBOL(migrate_page_copy);
 
 /************************************************************
  *                    Migration functions
diff -druNp --no-dereference linux-libre-3.14.73-gnu/mm/shmem.c linux-libre-3.14.74-gnu/mm/shmem.c
--- linux-libre-3.14.73-gnu/mm/shmem.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/mm/shmem.c	2016-07-27 12:56:02.000000000 -0400
@@ -1893,9 +1893,11 @@ static long shmem_fallocate(struct file
 									NULL);
 		if (error) {
 			/* Remove the !PageUptodate pages we added */
-			shmem_undo_range(inode,
-				(loff_t)start << PAGE_CACHE_SHIFT,
-				(loff_t)index << PAGE_CACHE_SHIFT, true);
+			if (index > start) {
+				shmem_undo_range(inode,
+				 (loff_t)start << PAGE_CACHE_SHIFT,
+				 ((loff_t)index << PAGE_CACHE_SHIFT) - 1, true);
+			}
 			goto undone;
 		}
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/net/ipv4/ipmr.c linux-libre-3.14.74-gnu/net/ipv4/ipmr.c
--- linux-libre-3.14.73-gnu/net/ipv4/ipmr.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/net/ipv4/ipmr.c	2016-07-27 12:56:02.000000000 -0400
@@ -883,8 +883,10 @@ static struct mfc_cache *ipmr_cache_allo
 {
 	struct mfc_cache *c = kmem_cache_zalloc(mrt_cachep, GFP_KERNEL);
 
-	if (c)
+	if (c) {
+		c->mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
 		c->mfc_un.res.minvif = MAXVIFS;
+	}
 	return c;
 }
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/net/ipv6/ip6mr.c linux-libre-3.14.74-gnu/net/ipv6/ip6mr.c
--- linux-libre-3.14.73-gnu/net/ipv6/ip6mr.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/net/ipv6/ip6mr.c	2016-07-27 12:56:02.000000000 -0400
@@ -1076,6 +1076,7 @@ static struct mfc6_cache *ip6mr_cache_al
 	struct mfc6_cache *c = kmem_cache_zalloc(mrt_cachep, GFP_KERNEL);
 	if (c == NULL)
 		return NULL;
+	c->mfc_un.res.last_assert = jiffies - MFC_ASSERT_THRESH - 1;
 	c->mfc_un.res.minvif = MAXMIFS;
 	return c;
 }
diff -druNp --no-dereference linux-libre-3.14.73-gnu/net/ipv6/sit.c linux-libre-3.14.74-gnu/net/ipv6/sit.c
--- linux-libre-3.14.73-gnu/net/ipv6/sit.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/net/ipv6/sit.c	2016-07-27 12:56:02.000000000 -0400
@@ -559,13 +559,13 @@ static int ipip6_err(struct sk_buff *skb
 
 	if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) {
 		ipv4_update_pmtu(skb, dev_net(skb->dev), info,
-				 t->parms.link, 0, IPPROTO_IPV6, 0);
+				 t->parms.link, 0, iph->protocol, 0);
 		err = 0;
 		goto out;
 	}
 	if (type == ICMP_REDIRECT) {
 		ipv4_redirect(skb, dev_net(skb->dev), t->parms.link, 0,
-			      IPPROTO_IPV6, 0);
+			      iph->protocol, 0);
 		err = 0;
 		goto out;
 	}
diff -druNp --no-dereference linux-libre-3.14.73-gnu/net/mac80211/mesh.c linux-libre-3.14.74-gnu/net/mac80211/mesh.c
--- linux-libre-3.14.73-gnu/net/mac80211/mesh.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/net/mac80211/mesh.c	2016-07-27 12:56:02.000000000 -0400
@@ -161,6 +161,10 @@ void mesh_sta_cleanup(struct sta_info *s
 		del_timer_sync(&sta->plink_timer);
 	}
 
+	/* make sure no readers can access nexthop sta from here on */
+	mesh_path_flush_by_nexthop(sta);
+	synchronize_net();
+
 	if (changed)
 		ieee80211_mbss_info_change_notify(sdata, changed);
 }
diff -druNp --no-dereference linux-libre-3.14.73-gnu/security/keys/key.c linux-libre-3.14.74-gnu/security/keys/key.c
--- linux-libre-3.14.73-gnu/security/keys/key.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/security/keys/key.c	2016-07-27 12:56:02.000000000 -0400
@@ -575,7 +575,7 @@ int key_reject_and_link(struct key *key,
 
 	mutex_unlock(&key_construction_mutex);
 
-	if (keyring)
+	if (keyring && link_ret == 0)
 		__key_link_end(keyring, &key->index_key, edit);
 
 	/* wake up anyone waiting for a key to be constructed */
diff -druNp --no-dereference linux-libre-3.14.73-gnu/sound/core/control.c linux-libre-3.14.74-gnu/sound/core/control.c
--- linux-libre-3.14.73-gnu/sound/core/control.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/sound/core/control.c	2016-07-27 12:56:02.000000000 -0400
@@ -150,6 +150,8 @@ void snd_ctl_notify(struct snd_card *car
 	
 	if (snd_BUG_ON(!card || !id))
 		return;
+	if (card->shutdown)
+		return;
 	read_lock(&card->ctl_files_rwlock);
 #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE)
 	card->mixer_oss_change_count++;
diff -druNp --no-dereference linux-libre-3.14.73-gnu/sound/drivers/dummy.c linux-libre-3.14.74-gnu/sound/drivers/dummy.c
--- linux-libre-3.14.73-gnu/sound/drivers/dummy.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/sound/drivers/dummy.c	2016-07-27 12:56:02.000000000 -0400
@@ -422,6 +422,7 @@ static int dummy_hrtimer_stop(struct snd
 
 static inline void dummy_hrtimer_sync(struct dummy_hrtimer_pcm *dpcm)
 {
+	hrtimer_cancel(&dpcm->timer);
 	tasklet_kill(&dpcm->tasklet);
 }
 
diff -druNp --no-dereference linux-libre-3.14.73-gnu/sound/pci/au88x0/au88x0_core.c linux-libre-3.14.74-gnu/sound/pci/au88x0/au88x0_core.c
--- linux-libre-3.14.73-gnu/sound/pci/au88x0/au88x0_core.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/sound/pci/au88x0/au88x0_core.c	2016-07-27 12:56:02.000000000 -0400
@@ -1442,9 +1442,8 @@ static int vortex_wtdma_bufshift(vortex_
 	int page, p, pp, delta, i;
 
 	page =
-	    (hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)) &
-	     WT_SUBBUF_MASK)
-	    >> WT_SUBBUF_SHIFT;
+	    (hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2))
+	     >> WT_SUBBUF_SHIFT) & WT_SUBBUF_MASK;
 	if (dma->nr_periods >= 4)
 		delta = (page - dma->period_real) & 3;
 	else {
diff -druNp --no-dereference linux-libre-3.14.73-gnu/virt/kvm/kvm_main.c linux-libre-3.14.74-gnu/virt/kvm/kvm_main.c
--- linux-libre-3.14.73-gnu/virt/kvm/kvm_main.c	2016-06-24 13:15:43.000000000 -0400
+++ linux-libre-3.14.74-gnu/virt/kvm/kvm_main.c	2016-07-27 12:56:02.000000000 -0400
@@ -2455,7 +2455,7 @@ static long kvm_vm_ioctl(struct file *fi
 		if (copy_from_user(&routing, argp, sizeof(routing)))
 			goto out;
 		r = -EINVAL;
-		if (routing.nr >= KVM_MAX_IRQ_ROUTES)
+		if (routing.nr > KVM_MAX_IRQ_ROUTES)
 			goto out;
 		if (routing.flags)
 			goto out;
