diff -druNp --no-dereference linux-libre-4.9.144-gnu/arch/arc/configs/zebu_hs_defconfig linux-libre-4.9.145-gnu/arch/arc/configs/zebu_hs_defconfig
--- linux-libre-4.9.144-gnu/arch/arc/configs/zebu_hs_defconfig	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/arch/arc/configs/zebu_hs_defconfig	2018-12-13 03:20:30.000000000 -0500
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
 # CONFIG_UTS_NS is not set
 # CONFIG_PID_NS is not set
 CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
 CONFIG_EXPERT=y
 CONFIG_PERF_EVENTS=y
 # CONFIG_COMPAT_BRK is not set
diff -druNp --no-dereference linux-libre-4.9.144-gnu/arch/arc/configs/zebu_hs_smp_defconfig linux-libre-4.9.145-gnu/arch/arc/configs/zebu_hs_smp_defconfig
--- linux-libre-4.9.144-gnu/arch/arc/configs/zebu_hs_smp_defconfig	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/arch/arc/configs/zebu_hs_smp_defconfig	2018-12-13 03:20:30.000000000 -0500
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
 # CONFIG_UTS_NS is not set
 # CONFIG_PID_NS is not set
 CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
 CONFIG_EMBEDDED=y
 CONFIG_PERF_EVENTS=y
 # CONFIG_VM_EVENT_COUNTERS is not set
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/dma/cppi41.c linux-libre-4.9.145-gnu/drivers/dma/cppi41.c
--- linux-libre-4.9.144-gnu/drivers/dma/cppi41.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/dma/cppi41.c	2018-12-13 03:20:30.000000000 -0500
@@ -717,8 +717,22 @@ static int cppi41_stop_chan(struct dma_c
 
 	desc_phys = lower_32_bits(c->desc_phys);
 	desc_num = (desc_phys - cdd->descs_phys) / sizeof(struct cppi41_desc);
-	if (!cdd->chan_busy[desc_num])
+	if (!cdd->chan_busy[desc_num]) {
+		struct cppi41_channel *cc, *_ct;
+
+		/*
+		 * channels might still be in the pendling list if
+		 * cppi41_dma_issue_pending() is called after
+		 * cppi41_runtime_suspend() is called
+		 */
+		list_for_each_entry_safe(cc, _ct, &cdd->pending, node) {
+			if (cc != c)
+				continue;
+			list_del(&cc->node);
+			break;
+		}
 		return 0;
+	}
 
 	ret = cppi41_tear_down_chan(c);
 	if (ret)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/hid/hid-ids.h linux-libre-4.9.145-gnu/drivers/hid/hid-ids.h
--- linux-libre-4.9.144-gnu/drivers/hid/hid-ids.h	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/hid/hid-ids.h	2018-12-13 03:20:30.000000000 -0500
@@ -965,6 +965,7 @@
 #define USB_VENDOR_ID_SYMBOL		0x05e0
 #define USB_DEVICE_ID_SYMBOL_SCANNER_1	0x0800
 #define USB_DEVICE_ID_SYMBOL_SCANNER_2	0x1300
+#define USB_DEVICE_ID_SYMBOL_SCANNER_3	0x1200
 
 #define USB_VENDOR_ID_SYNAPTICS		0x06cb
 #define USB_DEVICE_ID_SYNAPTICS_TP	0x0001
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/hid/hid-input.c linux-libre-4.9.145-gnu/drivers/hid/hid-input.c
--- linux-libre-4.9.144-gnu/drivers/hid/hid-input.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/hid/hid-input.c	2018-12-13 03:20:30.000000000 -0500
@@ -324,6 +324,9 @@ static const struct hid_device_id hid_ba
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM,
 		USB_DEVICE_ID_ELECOM_BM084),
 	  HID_BATTERY_QUIRK_IGNORE },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SYMBOL,
+		USB_DEVICE_ID_SYMBOL_SCANNER_3),
+	  HID_BATTERY_QUIRK_IGNORE },
 	{}
 };
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/iommu/intel-iommu.c linux-libre-4.9.145-gnu/drivers/iommu/intel-iommu.c
--- linux-libre-4.9.144-gnu/drivers/iommu/intel-iommu.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/iommu/intel-iommu.c	2018-12-13 03:20:30.000000000 -0500
@@ -3054,7 +3054,7 @@ static int copy_context_table(struct int
 			}
 
 			if (old_ce)
-				iounmap(old_ce);
+				memunmap(old_ce);
 
 			ret = 0;
 			if (devfn < 0x80)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/iommu/intel-svm.c linux-libre-4.9.145-gnu/drivers/iommu/intel-svm.c
--- linux-libre-4.9.144-gnu/drivers/iommu/intel-svm.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/iommu/intel-svm.c	2018-12-13 03:20:30.000000000 -0500
@@ -558,7 +558,7 @@ static irqreturn_t prq_event_thread(int
 			pr_err("%s: Page request without PASID: %08llx %08llx\n",
 			       iommu->name, ((unsigned long long *)req)[0],
 			       ((unsigned long long *)req)[1]);
-			goto bad_req;
+			goto no_pasid;
 		}
 
 		if (!svm || svm->pasid != req->pasid) {
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/iommu/ipmmu-vmsa.c linux-libre-4.9.145-gnu/drivers/iommu/ipmmu-vmsa.c
--- linux-libre-4.9.144-gnu/drivers/iommu/ipmmu-vmsa.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/iommu/ipmmu-vmsa.c	2018-12-13 03:20:30.000000000 -0500
@@ -372,6 +372,9 @@ static int ipmmu_domain_init_context(str
 
 static void ipmmu_domain_destroy_context(struct ipmmu_vmsa_domain *domain)
 {
+	if (!domain->mmu)
+		return;
+
 	/*
 	 * Disable the context. Flush the TLB as required when modifying the
 	 * context registers.
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/media/platform/omap3isp/isp.c linux-libre-4.9.145-gnu/drivers/media/platform/omap3isp/isp.c
--- linux-libre-4.9.144-gnu/drivers/media/platform/omap3isp/isp.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/media/platform/omap3isp/isp.c	2018-12-13 03:20:30.000000000 -0500
@@ -1591,6 +1591,8 @@ static void isp_pm_complete(struct devic
 
 static void isp_unregister_entities(struct isp_device *isp)
 {
+	media_device_unregister(&isp->media_dev);
+
 	omap3isp_csi2_unregister_entities(&isp->isp_csi2a);
 	omap3isp_ccp2_unregister_entities(&isp->isp_ccp2);
 	omap3isp_ccdc_unregister_entities(&isp->isp_ccdc);
@@ -1601,7 +1603,6 @@ static void isp_unregister_entities(stru
 	omap3isp_stat_unregister_entities(&isp->isp_hist);
 
 	v4l2_device_unregister(&isp->v4l2_dev);
-	media_device_unregister(&isp->media_dev);
 	media_device_cleanup(&isp->media_dev);
 }
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/mtd/nand/qcom_nandc.c linux-libre-4.9.145-gnu/drivers/mtd/nand/qcom_nandc.c
--- linux-libre-4.9.144-gnu/drivers/mtd/nand/qcom_nandc.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/mtd/nand/qcom_nandc.c	2018-12-13 03:20:30.000000000 -0500
@@ -142,15 +142,15 @@
 #define	NAND_VERSION_MINOR_SHIFT	16
 
 /* NAND OP_CMDs */
-#define	PAGE_READ			0x2
-#define	PAGE_READ_WITH_ECC		0x3
-#define	PAGE_READ_WITH_ECC_SPARE	0x4
-#define	PROGRAM_PAGE			0x6
-#define	PAGE_PROGRAM_WITH_ECC		0x7
-#define	PROGRAM_PAGE_SPARE		0x9
-#define	BLOCK_ERASE			0xa
-#define	FETCH_ID			0xb
-#define	RESET_DEVICE			0xd
+#define	OP_PAGE_READ			0x2
+#define	OP_PAGE_READ_WITH_ECC		0x3
+#define	OP_PAGE_READ_WITH_ECC_SPARE	0x4
+#define	OP_PROGRAM_PAGE			0x6
+#define	OP_PAGE_PROGRAM_WITH_ECC	0x7
+#define	OP_PROGRAM_PAGE_SPARE		0x9
+#define	OP_BLOCK_ERASE			0xa
+#define	OP_FETCH_ID			0xb
+#define	OP_RESET_DEVICE			0xd
 
 /* Default Value for NAND_DEV_CMD_VLD */
 #define NAND_DEV_CMD_VLD_VAL		(READ_START_VLD | WRITE_START_VLD | \
@@ -425,11 +425,11 @@ static void update_rw_regs(struct qcom_n
 
 	if (read) {
 		if (host->use_ecc)
-			cmd = PAGE_READ_WITH_ECC | PAGE_ACC | LAST_PAGE;
+			cmd = OP_PAGE_READ_WITH_ECC | PAGE_ACC | LAST_PAGE;
 		else
-			cmd = PAGE_READ | PAGE_ACC | LAST_PAGE;
+			cmd = OP_PAGE_READ | PAGE_ACC | LAST_PAGE;
 	} else {
-			cmd = PROGRAM_PAGE | PAGE_ACC | LAST_PAGE;
+		cmd = OP_PROGRAM_PAGE | PAGE_ACC | LAST_PAGE;
 	}
 
 	if (host->use_ecc) {
@@ -662,7 +662,7 @@ static int nandc_param(struct qcom_nand_
 	 * in use. we configure the controller to perform a raw read of 512
 	 * bytes to read onfi params
 	 */
-	nandc_set_reg(nandc, NAND_FLASH_CMD, PAGE_READ | PAGE_ACC | LAST_PAGE);
+	nandc_set_reg(nandc, NAND_FLASH_CMD, OP_PAGE_READ | PAGE_ACC | LAST_PAGE);
 	nandc_set_reg(nandc, NAND_ADDR0, 0);
 	nandc_set_reg(nandc, NAND_ADDR1, 0);
 	nandc_set_reg(nandc, NAND_DEV0_CFG0, 0 << CW_PER_PAGE
@@ -715,7 +715,7 @@ static int erase_block(struct qcom_nand_
 	struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip);
 
 	nandc_set_reg(nandc, NAND_FLASH_CMD,
-		      BLOCK_ERASE | PAGE_ACC | LAST_PAGE);
+		      OP_BLOCK_ERASE | PAGE_ACC | LAST_PAGE);
 	nandc_set_reg(nandc, NAND_ADDR0, page_addr);
 	nandc_set_reg(nandc, NAND_ADDR1, 0);
 	nandc_set_reg(nandc, NAND_DEV0_CFG0,
@@ -746,7 +746,7 @@ static int read_id(struct qcom_nand_host
 	if (column == -1)
 		return 0;
 
-	nandc_set_reg(nandc, NAND_FLASH_CMD, FETCH_ID);
+	nandc_set_reg(nandc, NAND_FLASH_CMD, OP_FETCH_ID);
 	nandc_set_reg(nandc, NAND_ADDR0, column);
 	nandc_set_reg(nandc, NAND_ADDR1, 0);
 	nandc_set_reg(nandc, NAND_FLASH_CHIP_SELECT, DM_EN);
@@ -766,7 +766,7 @@ static int reset(struct qcom_nand_host *
 	struct nand_chip *chip = &host->chip;
 	struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip);
 
-	nandc_set_reg(nandc, NAND_FLASH_CMD, RESET_DEVICE);
+	nandc_set_reg(nandc, NAND_FLASH_CMD, OP_RESET_DEVICE);
 	nandc_set_reg(nandc, NAND_EXEC_CMD, 1);
 
 	write_reg_dma(nandc, NAND_FLASH_CMD, 1);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/can/rcar/rcar_can.c linux-libre-4.9.145-gnu/drivers/net/can/rcar/rcar_can.c
--- linux-libre-4.9.144-gnu/drivers/net/can/rcar/rcar_can.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/can/rcar/rcar_can.c	2018-12-13 03:20:30.000000000 -0500
@@ -24,6 +24,9 @@
 
 #define RCAR_CAN_DRV_NAME	"rcar_can"
 
+#define RCAR_SUPPORTED_CLOCKS	(BIT(CLKR_CLKP1) | BIT(CLKR_CLKP2) | \
+				 BIT(CLKR_CLKEXT))
+
 /* Mailbox configuration:
  * mailbox 60 - 63 - Rx FIFO mailboxes
  * mailbox 56 - 59 - Tx FIFO mailboxes
@@ -789,7 +792,7 @@ static int rcar_can_probe(struct platfor
 		goto fail_clk;
 	}
 
-	if (clock_select >= ARRAY_SIZE(clock_names)) {
+	if (!(BIT(clock_select) & RCAR_SUPPORTED_CLOCKS)) {
 		err = -EINVAL;
 		dev_err(&pdev->dev, "invalid CAN clock selected\n");
 		goto fail_clk;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/amd/sunlance.c linux-libre-4.9.145-gnu/drivers/net/ethernet/amd/sunlance.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/amd/sunlance.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/amd/sunlance.c	2018-12-13 03:20:30.000000000 -0500
@@ -1419,7 +1419,7 @@ static int sparc_lance_probe_one(struct
 
 			prop = of_get_property(nd, "tpe-link-test?", NULL);
 			if (!prop)
-				goto no_link_test;
+				goto node_put;
 
 			if (strcmp(prop, "true")) {
 				printk(KERN_NOTICE "SunLance: warning: overriding option "
@@ -1428,6 +1428,8 @@ static int sparc_lance_probe_one(struct
 				       "to ecd@skynet.be\n");
 				auxio_set_lte(AUXIO_LTE_ON);
 			}
+node_put:
+			of_node_put(nd);
 no_link_test:
 			lp->auto_select = 1;
 			lp->tpe = 0;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h linux-libre-4.9.145-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h	2018-12-13 03:20:30.000000000 -0500
@@ -2187,6 +2187,13 @@ void bnx2x_igu_clear_sb_gen(struct bnx2x
 #define PMF_DMAE_C(bp)			(BP_PORT(bp) * MAX_DMAE_C_PER_PORT + \
 					 E1HVN_MAX)
 
+/* Following is the DMAE channel number allocation for the clients.
+ *   MFW: OCBB/OCSD implementations use DMAE channels 14/15 respectively.
+ *   Driver: 0-3 and 8-11 (for PF dmae operations)
+ *           4 and 12 (for stats requests)
+ */
+#define BNX2X_FW_DMAE_C                 13 /* Channel for FW DMAE operations */
+
 /* PCIE link and speed */
 #define PCICFG_LINK_WIDTH		0x1f00000
 #define PCICFG_LINK_WIDTH_SHIFT		20
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c linux-libre-4.9.145-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c	2018-12-13 03:20:30.000000000 -0500
@@ -6149,6 +6149,7 @@ static inline int bnx2x_func_send_start(
 	rdata->sd_vlan_tag	= cpu_to_le16(start_params->sd_vlan_tag);
 	rdata->path_id		= BP_PATH(bp);
 	rdata->network_cos_mode	= start_params->network_cos_mode;
+	rdata->dmae_cmd_id	= BNX2X_FW_DMAE_C;
 
 	rdata->vxlan_dst_port	= cpu_to_le16(start_params->vxlan_dst_port);
 	rdata->geneve_dst_port	= cpu_to_le16(start_params->geneve_dst_port);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/faraday/ftmac100.c linux-libre-4.9.145-gnu/drivers/net/ethernet/faraday/ftmac100.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/faraday/ftmac100.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/faraday/ftmac100.c	2018-12-13 03:20:30.000000000 -0500
@@ -865,11 +865,10 @@ static irqreturn_t ftmac100_interrupt(in
 	struct net_device *netdev = dev_id;
 	struct ftmac100 *priv = netdev_priv(netdev);
 
-	if (likely(netif_running(netdev))) {
-		/* Disable interrupts for polling */
-		ftmac100_disable_all_int(priv);
+	/* Disable interrupts for polling */
+	ftmac100_disable_all_int(priv);
+	if (likely(netif_running(netdev)))
 		napi_schedule(&priv->napi);
-	}
 
 	return IRQ_HANDLED;
 }
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/alloc.c linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/alloc.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/alloc.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/alloc.c	2018-12-13 03:20:30.000000000 -0500
@@ -339,7 +339,7 @@ void mlx4_zone_allocator_destroy(struct
 static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count,
 				  int align, u32 skip_mask, u32 *puid)
 {
-	u32 uid;
+	u32 uid = 0;
 	u32 res;
 	struct mlx4_zone_allocator *zone_alloc = zone->allocator;
 	struct mlx4_zone_entry *curr_node;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/mlx4.h linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/mlx4.h
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/mlx4.h	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/mlx4.h	2018-12-13 03:20:30.000000000 -0500
@@ -542,8 +542,8 @@ struct slave_list {
 struct resource_allocator {
 	spinlock_t alloc_lock; /* protect quotas */
 	union {
-		int res_reserved;
-		int res_port_rsvd[MLX4_MAX_PORTS];
+		unsigned int res_reserved;
+		unsigned int res_port_rsvd[MLX4_MAX_PORTS];
 	};
 	union {
 		int res_free;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/mr.c linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/mr.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/mellanox/mlx4/mr.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/mellanox/mlx4/mr.c	2018-12-13 03:20:30.000000000 -0500
@@ -366,6 +366,7 @@ int mlx4_mr_hw_write_mpt(struct mlx4_dev
 			container_of((void *)mpt_entry, struct mlx4_cmd_mailbox,
 				     buf);
 
+		(*mpt_entry)->lkey = 0;
 		err = mlx4_SW2HW_MPT(dev, mailbox, key);
 	}
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/qlogic/qed/qed_int.c linux-libre-4.9.145-gnu/drivers/net/ethernet/qlogic/qed/qed_int.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/qlogic/qed/qed_int.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/qlogic/qed/qed_int.c	2018-12-13 03:20:30.000000000 -0500
@@ -2135,6 +2135,8 @@ static int qed_int_attentions(struct qed
 	 */
 	do {
 		index = p_sb_attn->sb_index;
+		/* finish reading index before the loop condition */
+		dma_rmb();
 		attn_bits = le32_to_cpu(p_sb_attn->atten_bits);
 		attn_acks = le32_to_cpu(p_sb_attn->atten_ack);
 	} while (index != p_sb_attn->sb_index);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/ethernet/qlogic/qed/qed_main.c linux-libre-4.9.145-gnu/drivers/net/ethernet/qlogic/qed/qed_main.c
--- linux-libre-4.9.144-gnu/drivers/net/ethernet/qlogic/qed/qed_main.c	2018-12-08 15:48:02.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/ethernet/qlogic/qed/qed_main.c	2018-12-13 13:38:30.000000000 -0500
@@ -1395,9 +1395,9 @@ static int qed_drain(struct qed_dev *cde
 			return -EBUSY;
 		}
 		rc = qed_mcp_drain(hwfn, ptt);
+		qed_ptt_release(hwfn, ptt);
 		if (rc)
 			return rc;
-		qed_ptt_release(hwfn, ptt);
 	}
 
 	return 0;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/team/team.c linux-libre-4.9.145-gnu/drivers/net/team/team.c
--- linux-libre-4.9.144-gnu/drivers/net/team/team.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/team/team.c	2018-12-13 03:20:30.000000000 -0500
@@ -989,8 +989,6 @@ static void team_port_disable(struct tea
 	team->en_port_count--;
 	team_queue_override_port_del(team, port);
 	team_adjust_ops(team);
-	team_notify_peers(team);
-	team_mcast_rejoin(team);
 	team_lower_state_changed(port);
 }
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c linux-libre-4.9.145-gnu/drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c
--- linux-libre-4.9.144-gnu/drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c	2018-12-13 03:20:30.000000000 -0500
@@ -193,6 +193,9 @@ static void brcmu_d11ac_decchspec(struct
 		}
 		break;
 	case BRCMU_CHSPEC_D11AC_BW_160:
+		ch->bw = BRCMU_CHAN_BW_160;
+		ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
+					 BRCMU_CHSPEC_D11AC_SB_SHIFT);
 		switch (ch->sb) {
 		case BRCMU_CHAN_SB_LLL:
 			ch->control_ch_num -= CH_70MHZ_APART;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/net/wireless/mac80211_hwsim.c linux-libre-4.9.145-gnu/drivers/net/wireless/mac80211_hwsim.c
--- linux-libre-4.9.144-gnu/drivers/net/wireless/mac80211_hwsim.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/net/wireless/mac80211_hwsim.c	2018-12-13 03:20:30.000000000 -0500
@@ -2633,6 +2633,10 @@ static int mac80211_hwsim_new_radio(stru
 	if (param->no_vif)
 		ieee80211_hw_set(hw, NO_AUTO_VIF);
 
+	tasklet_hrtimer_init(&data->beacon_timer,
+			     mac80211_hwsim_beacon,
+			     CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
+
 	err = ieee80211_register_hw(hw);
 	if (err < 0) {
 		printk(KERN_DEBUG "mac80211_hwsim: ieee80211_register_hw failed (%d)\n",
@@ -2657,10 +2661,6 @@ static int mac80211_hwsim_new_radio(stru
 				    data->debugfs,
 				    data, &hwsim_simulate_radar);
 
-	tasklet_hrtimer_init(&data->beacon_timer,
-			     mac80211_hwsim_beacon,
-			     CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
-
 	spin_lock_bh(&hwsim_radio_lock);
 	list_add_tail(&data->list, &hwsim_radios);
 	spin_unlock_bh(&hwsim_radio_lock);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/s390/virtio/virtio_ccw.c linux-libre-4.9.145-gnu/drivers/s390/virtio/virtio_ccw.c
--- linux-libre-4.9.144-gnu/drivers/s390/virtio/virtio_ccw.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/s390/virtio/virtio_ccw.c	2018-12-13 03:20:30.000000000 -0500
@@ -59,6 +59,7 @@ struct virtio_ccw_device {
 	unsigned int revision; /* Transport revision */
 	wait_queue_head_t wait_q;
 	spinlock_t lock;
+	struct mutex io_lock; /* Serializes I/O requests */
 	struct list_head virtqueues;
 	unsigned long indicators;
 	unsigned long indicators2;
@@ -307,6 +308,7 @@ static int ccw_io_helper(struct virtio_c
 	unsigned long flags;
 	int flag = intparm & VIRTIO_CCW_INTPARM_MASK;
 
+	mutex_lock(&vcdev->io_lock);
 	do {
 		spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags);
 		ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0);
@@ -319,7 +321,9 @@ static int ccw_io_helper(struct virtio_c
 		cpu_relax();
 	} while (ret == -EBUSY);
 	wait_event(vcdev->wait_q, doing_io(vcdev, flag) == 0);
-	return ret ? ret : vcdev->err;
+	ret = ret ? ret : vcdev->err;
+	mutex_unlock(&vcdev->io_lock);
+	return ret;
 }
 
 static void virtio_ccw_drop_indicator(struct virtio_ccw_device *vcdev,
@@ -837,6 +841,7 @@ static void virtio_ccw_get_config(struct
 	int ret;
 	struct ccw1 *ccw;
 	void *config_area;
+	unsigned long flags;
 
 	ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL);
 	if (!ccw)
@@ -855,11 +860,13 @@ static void virtio_ccw_get_config(struct
 	if (ret)
 		goto out_free;
 
+	spin_lock_irqsave(&vcdev->lock, flags);
 	memcpy(vcdev->config, config_area, offset + len);
-	if (buf)
-		memcpy(buf, &vcdev->config[offset], len);
 	if (vcdev->config_ready < offset + len)
 		vcdev->config_ready = offset + len;
+	spin_unlock_irqrestore(&vcdev->lock, flags);
+	if (buf)
+		memcpy(buf, config_area + offset, len);
 
 out_free:
 	kfree(config_area);
@@ -873,6 +880,7 @@ static void virtio_ccw_set_config(struct
 	struct virtio_ccw_device *vcdev = to_vc_device(vdev);
 	struct ccw1 *ccw;
 	void *config_area;
+	unsigned long flags;
 
 	ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL);
 	if (!ccw)
@@ -885,9 +893,11 @@ static void virtio_ccw_set_config(struct
 	/* Make sure we don't overwrite fields. */
 	if (vcdev->config_ready < offset)
 		virtio_ccw_get_config(vdev, 0, NULL, offset);
+	spin_lock_irqsave(&vcdev->lock, flags);
 	memcpy(&vcdev->config[offset], buf, len);
 	/* Write the config area to the host. */
 	memcpy(config_area, vcdev->config, sizeof(vcdev->config));
+	spin_unlock_irqrestore(&vcdev->lock, flags);
 	ccw->cmd_code = CCW_CMD_WRITE_CONF;
 	ccw->flags = 0;
 	ccw->count = offset + len;
@@ -1233,6 +1243,7 @@ static int virtio_ccw_online(struct ccw_
 	init_waitqueue_head(&vcdev->wait_q);
 	INIT_LIST_HEAD(&vcdev->virtqueues);
 	spin_lock_init(&vcdev->lock);
+	mutex_init(&vcdev->io_lock);
 
 	spin_lock_irqsave(get_ccwdev_lock(cdev), flags);
 	dev_set_drvdata(&cdev->dev, vcdev);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/scsi/sr_ioctl.c linux-libre-4.9.145-gnu/drivers/scsi/sr_ioctl.c
--- linux-libre-4.9.144-gnu/drivers/scsi/sr_ioctl.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/scsi/sr_ioctl.c	2018-12-13 03:20:30.000000000 -0500
@@ -187,30 +187,25 @@ int sr_do_ioctl(Scsi_CD *cd, struct pack
 	struct scsi_device *SDev;
 	struct scsi_sense_hdr sshdr;
 	int result, err = 0, retries = 0;
-	struct request_sense *sense = cgc->sense;
+	unsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE];
 
 	SDev = cd->device;
 
-	if (!sense) {
-		sense = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL);
-		if (!sense) {
-			err = -ENOMEM;
-			goto out;
-		}
-	}
-
       retry:
 	if (!scsi_block_when_processing_errors(SDev)) {
 		err = -ENODEV;
 		goto out;
 	}
 
-	memset(sense, 0, sizeof(*sense));
+	memset(sense_buffer, 0, sizeof(sense_buffer));
 	result = scsi_execute(SDev, cgc->cmd, cgc->data_direction,
-			      cgc->buffer, cgc->buflen, (char *)sense,
+			      cgc->buffer, cgc->buflen, sense_buffer,
 			      cgc->timeout, IOCTL_RETRIES, 0, NULL);
 
-	scsi_normalize_sense((char *)sense, sizeof(*sense), &sshdr);
+	scsi_normalize_sense(sense_buffer, sizeof(sense_buffer), &sshdr);
+
+	if (cgc->sense)
+		memcpy(cgc->sense, sense_buffer, sizeof(*cgc->sense));
 
 	/* Minimal error checking.  Ignore cases we know about, and report the rest. */
 	if (driver_byte(result) != 0) {
@@ -261,8 +256,6 @@ int sr_do_ioctl(Scsi_CD *cd, struct pack
 
 	/* Wake up a process waiting for device */
       out:
-	if (!cgc->sense)
-		kfree(sense);
 	cgc->stat = err;
 	return err;
 }
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/staging/lustre/lnet/lnet/config.c linux-libre-4.9.145-gnu/drivers/staging/lustre/lnet/lnet/config.c
--- linux-libre-4.9.144-gnu/drivers/staging/lustre/lnet/lnet/config.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/staging/lustre/lnet/lnet/config.c	2018-12-13 03:20:30.000000000 -0500
@@ -354,8 +354,7 @@ lnet_parse_networks(struct list_head *ni
 				CERROR("Can't allocate net interface name\n");
 				goto failed;
 			}
-			strncpy(ni->ni_interfaces[niface], iface,
-				strlen(iface));
+			strcpy(ni->ni_interfaces[niface], iface);
 			niface++;
 			iface = comma;
 		} while (iface);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/staging/lustre/lustre/lmv/lmv_obd.c linux-libre-4.9.145-gnu/drivers/staging/lustre/lustre/lmv/lmv_obd.c
--- linux-libre-4.9.144-gnu/drivers/staging/lustre/lustre/lmv/lmv_obd.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/staging/lustre/lustre/lmv/lmv_obd.c	2018-12-13 03:20:30.000000000 -0500
@@ -684,7 +684,7 @@ repeat_fid2path:
 		memmove(ptr + strlen(gf->gf_path) + 1, ptr,
 			strlen(ori_gf->gf_path));
 
-		strncpy(ptr, gf->gf_path, strlen(gf->gf_path));
+		strcpy(ptr, gf->gf_path);
 		ptr += strlen(gf->gf_path);
 		*ptr = '/';
 	}
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/staging/rtl8712/mlme_linux.c linux-libre-4.9.145-gnu/drivers/staging/rtl8712/mlme_linux.c
--- linux-libre-4.9.144-gnu/drivers/staging/rtl8712/mlme_linux.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/staging/rtl8712/mlme_linux.c	2018-12-13 03:20:30.000000000 -0500
@@ -158,7 +158,7 @@ void r8712_report_sec_ie(struct _adapter
 		p = buff;
 		p += sprintf(p, "ASSOCINFO(ReqIEs=");
 		len = sec_ie[1] + 2;
-		len =  (len < IW_CUSTOM_MAX) ? len : IW_CUSTOM_MAX - 1;
+		len =  (len < IW_CUSTOM_MAX) ? len : IW_CUSTOM_MAX;
 		for (i = 0; i < len; i++)
 			p += sprintf(p, "%02x", sec_ie[i]);
 		p += sprintf(p, ")");
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/staging/rtl8712/rtl871x_mlme.c linux-libre-4.9.145-gnu/drivers/staging/rtl8712/rtl871x_mlme.c
--- linux-libre-4.9.144-gnu/drivers/staging/rtl8712/rtl871x_mlme.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/staging/rtl8712/rtl871x_mlme.c	2018-12-13 03:20:30.000000000 -0500
@@ -1365,7 +1365,7 @@ sint r8712_restruct_sec_ie(struct _adapt
 		     u8 *out_ie, uint in_len)
 {
 	u8 authmode = 0, match;
-	u8 sec_ie[255], uncst_oui[4], bkup_ie[255];
+	u8 sec_ie[IW_CUSTOM_MAX], uncst_oui[4], bkup_ie[255];
 	u8 wpa_oui[4] = {0x0, 0x50, 0xf2, 0x01};
 	uint ielength, cnt, remove_cnt;
 	int iEntry;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/tty/serial/8250/8250_mtk.c linux-libre-4.9.145-gnu/drivers/tty/serial/8250/8250_mtk.c
--- linux-libre-4.9.144-gnu/drivers/tty/serial/8250/8250_mtk.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/tty/serial/8250/8250_mtk.c	2018-12-13 03:20:30.000000000 -0500
@@ -225,17 +225,17 @@ static int mtk8250_probe(struct platform
 
 	platform_set_drvdata(pdev, data);
 
-	pm_runtime_enable(&pdev->dev);
-	if (!pm_runtime_enabled(&pdev->dev)) {
-		err = mtk8250_runtime_resume(&pdev->dev);
-		if (err)
-			return err;
-	}
+	err = mtk8250_runtime_resume(&pdev->dev);
+	if (err)
+		return err;
 
 	data->line = serial8250_register_8250_port(&uart);
 	if (data->line < 0)
 		return data->line;
 
+	pm_runtime_set_active(&pdev->dev);
+	pm_runtime_enable(&pdev->dev);
+
 	return 0;
 }
 
@@ -246,13 +246,11 @@ static int mtk8250_remove(struct platfor
 	pm_runtime_get_sync(&pdev->dev);
 
 	serial8250_unregister_port(data->line);
+	mtk8250_runtime_suspend(&pdev->dev);
 
 	pm_runtime_disable(&pdev->dev);
 	pm_runtime_put_noidle(&pdev->dev);
 
-	if (!pm_runtime_status_suspended(&pdev->dev))
-		mtk8250_runtime_suspend(&pdev->dev);
-
 	return 0;
 }
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/tty/serial/kgdboc.c linux-libre-4.9.145-gnu/drivers/tty/serial/kgdboc.c
--- linux-libre-4.9.144-gnu/drivers/tty/serial/kgdboc.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/tty/serial/kgdboc.c	2018-12-13 03:20:30.000000000 -0500
@@ -232,7 +232,7 @@ static void kgdboc_put_char(u8 chr)
 
 static int param_set_kgdboc_var(const char *kmessage, struct kernel_param *kp)
 {
-	int len = strlen(kmessage);
+	size_t len = strlen(kmessage);
 
 	if (len >= MAX_CONFIG_LEN) {
 		printk(KERN_ERR "kgdboc: config string too long\n");
@@ -254,7 +254,7 @@ static int param_set_kgdboc_var(const ch
 
 	strcpy(config, kmessage);
 	/* Chop out \n char as a result of echo */
-	if (config[len - 1] == '\n')
+	if (len && config[len - 1] == '\n')
 		config[len - 1] = '\0';
 
 	if (configured == 1)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/tty/tty_port.c linux-libre-4.9.145-gnu/drivers/tty/tty_port.c
--- linux-libre-4.9.144-gnu/drivers/tty/tty_port.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/tty/tty_port.c	2018-12-13 03:20:30.000000000 -0500
@@ -531,7 +531,8 @@ void tty_port_close(struct tty_port *por
 	if (tty_port_close_start(port, tty, filp) == 0)
 		return;
 	tty_port_shutdown(port, tty);
-	set_bit(TTY_IO_ERROR, &tty->flags);
+	if (!port->console)
+		set_bit(TTY_IO_ERROR, &tty->flags);
 	tty_port_close_end(port, tty);
 	tty_port_tty_set(port, NULL);
 }
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/core/hub.c linux-libre-4.9.145-gnu/drivers/usb/core/hub.c
--- linux-libre-4.9.144-gnu/drivers/usb/core/hub.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/core/hub.c	2018-12-13 03:20:30.000000000 -0500
@@ -2225,7 +2225,7 @@ static int usb_enumerate_device_otg(stru
 		/* descriptor may appear anywhere in config */
 		err = __usb_get_extra_descriptor(udev->rawdescriptors[0],
 				le16_to_cpu(udev->config[0].desc.wTotalLength),
-				USB_DT_OTG, (void **) &desc);
+				USB_DT_OTG, (void **) &desc, sizeof(*desc));
 		if (err || !(desc->bmAttributes & USB_OTG_HNP))
 			return 0;
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/core/quirks.c linux-libre-4.9.145-gnu/drivers/usb/core/quirks.c
--- linux-libre-4.9.144-gnu/drivers/usb/core/quirks.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/core/quirks.c	2018-12-13 03:20:30.000000000 -0500
@@ -188,6 +188,10 @@ static const struct usb_device_id usb_qu
 	/* Midiman M-Audio Keystation 88es */
 	{ USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME },
 
+	/* SanDisk Ultra Fit and Ultra Flair */
+	{ USB_DEVICE(0x0781, 0x5583), .driver_info = USB_QUIRK_NO_LPM },
+	{ USB_DEVICE(0x0781, 0x5591), .driver_info = USB_QUIRK_NO_LPM },
+
 	/* M-Systems Flash Disk Pioneers */
 	{ USB_DEVICE(0x08ec, 0x1000), .driver_info = USB_QUIRK_RESET_RESUME },
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/core/usb.c linux-libre-4.9.145-gnu/drivers/usb/core/usb.c
--- linux-libre-4.9.144-gnu/drivers/usb/core/usb.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/core/usb.c	2018-12-13 03:20:30.000000000 -0500
@@ -696,14 +696,14 @@ EXPORT_SYMBOL_GPL(usb_get_current_frame_
  */
 
 int __usb_get_extra_descriptor(char *buffer, unsigned size,
-			       unsigned char type, void **ptr)
+			       unsigned char type, void **ptr, size_t minsize)
 {
 	struct usb_descriptor_header *header;
 
 	while (size >= sizeof(struct usb_descriptor_header)) {
 		header = (struct usb_descriptor_header *)buffer;
 
-		if (header->bLength < 2) {
+		if (header->bLength < 2 || header->bLength > size) {
 			printk(KERN_ERR
 				"%s: bogus descriptor, type %d length %d\n",
 				usbcore_name,
@@ -712,7 +712,7 @@ int __usb_get_extra_descriptor(char *buf
 			return -1;
 		}
 
-		if (header->bDescriptorType == type) {
+		if (header->bDescriptorType == type && header->bLength >= minsize) {
 			*ptr = header;
 			return 0;
 		}
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/host/hwa-hc.c linux-libre-4.9.145-gnu/drivers/usb/host/hwa-hc.c
--- linux-libre-4.9.144-gnu/drivers/usb/host/hwa-hc.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/host/hwa-hc.c	2018-12-13 03:20:30.000000000 -0500
@@ -654,7 +654,7 @@ static int hwahc_security_create(struct
 	top = itr + itr_size;
 	result = __usb_get_extra_descriptor(usb_dev->rawdescriptors[index],
 			le16_to_cpu(usb_dev->actconfig->desc.wTotalLength),
-			USB_DT_SECURITY, (void **) &secd);
+			USB_DT_SECURITY, (void **) &secd, sizeof(*secd));
 	if (result == -1) {
 		dev_warn(dev, "BUG? WUSB host has no security descriptors\n");
 		return 0;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/host/xhci.c linux-libre-4.9.145-gnu/drivers/usb/host/xhci.c
--- linux-libre-4.9.144-gnu/drivers/usb/host/xhci.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/host/xhci.c	2018-12-13 03:20:30.000000000 -0500
@@ -4398,6 +4398,14 @@ static u16 xhci_calculate_u1_timeout(str
 {
 	unsigned long long timeout_ns;
 
+	/* Prevent U1 if service interval is shorter than U1 exit latency */
+	if (usb_endpoint_xfer_int(desc) || usb_endpoint_xfer_isoc(desc)) {
+		if (xhci_service_interval_to_ns(desc) <= udev->u1_params.mel) {
+			dev_dbg(&udev->dev, "Disable U1, ESIT shorter than exit latency\n");
+			return USB3_LPM_DISABLED;
+		}
+	}
+
 	if (xhci->quirks & XHCI_INTEL_HOST)
 		timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc);
 	else
@@ -4454,6 +4462,14 @@ static u16 xhci_calculate_u2_timeout(str
 {
 	unsigned long long timeout_ns;
 
+	/* Prevent U2 if service interval is shorter than U2 exit latency */
+	if (usb_endpoint_xfer_int(desc) || usb_endpoint_xfer_isoc(desc)) {
+		if (xhci_service_interval_to_ns(desc) <= udev->u2_params.mel) {
+			dev_dbg(&udev->dev, "Disable U2, ESIT shorter than exit latency\n");
+			return USB3_LPM_DISABLED;
+		}
+	}
+
 	if (xhci->quirks & XHCI_INTEL_HOST)
 		timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc);
 	else
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/usb/misc/appledisplay.c linux-libre-4.9.145-gnu/drivers/usb/misc/appledisplay.c
--- linux-libre-4.9.144-gnu/drivers/usb/misc/appledisplay.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/usb/misc/appledisplay.c	2018-12-13 03:20:30.000000000 -0500
@@ -64,6 +64,7 @@ static const struct usb_device_id appled
 	{ APPLEDISPLAY_DEVICE(0x921c) },
 	{ APPLEDISPLAY_DEVICE(0x921d) },
 	{ APPLEDISPLAY_DEVICE(0x9222) },
+	{ APPLEDISPLAY_DEVICE(0x9226) },
 	{ APPLEDISPLAY_DEVICE(0x9236) },
 
 	/* Terminating entry */
diff -druNp --no-dereference linux-libre-4.9.144-gnu/drivers/vhost/vsock.c linux-libre-4.9.145-gnu/drivers/vhost/vsock.c
--- linux-libre-4.9.144-gnu/drivers/vhost/vsock.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/drivers/vhost/vsock.c	2018-12-13 03:20:30.000000000 -0500
@@ -15,6 +15,7 @@
 #include <net/sock.h>
 #include <linux/virtio_vsock.h>
 #include <linux/vhost.h>
+#include <linux/hashtable.h>
 
 #include <net/af_vsock.h>
 #include "vhost.h"
@@ -27,14 +28,14 @@ enum {
 
 /* Used to track all the vhost_vsock instances on the system. */
 static DEFINE_SPINLOCK(vhost_vsock_lock);
-static LIST_HEAD(vhost_vsock_list);
+static DEFINE_READ_MOSTLY_HASHTABLE(vhost_vsock_hash, 8);
 
 struct vhost_vsock {
 	struct vhost_dev dev;
 	struct vhost_virtqueue vqs[2];
 
-	/* Link to global vhost_vsock_list, protected by vhost_vsock_lock */
-	struct list_head list;
+	/* Link to global vhost_vsock_hash, writes use vhost_vsock_lock */
+	struct hlist_node hash;
 
 	struct vhost_work send_pkt_work;
 	spinlock_t send_pkt_list_lock;
@@ -50,12 +51,14 @@ static u32 vhost_transport_get_local_cid
 	return VHOST_VSOCK_DEFAULT_HOST_CID;
 }
 
+/* Callers that dereference the return value must hold vhost_vsock_lock or the
+ * RCU read lock.
+ */
 static struct vhost_vsock *vhost_vsock_get(u32 guest_cid)
 {
 	struct vhost_vsock *vsock;
 
-	spin_lock_bh(&vhost_vsock_lock);
-	list_for_each_entry(vsock, &vhost_vsock_list, list) {
+	hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) {
 		u32 other_cid = vsock->guest_cid;
 
 		/* Skip instances that have no CID yet */
@@ -63,11 +66,9 @@ static struct vhost_vsock *vhost_vsock_g
 			continue;
 
 		if (other_cid == guest_cid) {
-			spin_unlock_bh(&vhost_vsock_lock);
 			return vsock;
 		}
 	}
-	spin_unlock_bh(&vhost_vsock_lock);
 
 	return NULL;
 }
@@ -198,9 +199,12 @@ vhost_transport_send_pkt(struct virtio_v
 	struct vhost_virtqueue *vq;
 	int len = pkt->len;
 
+	rcu_read_lock();
+
 	/* Find the vhost_vsock according to guest context id  */
 	vsock = vhost_vsock_get(le64_to_cpu(pkt->hdr.dst_cid));
 	if (!vsock) {
+		rcu_read_unlock();
 		virtio_transport_free_pkt(pkt);
 		return -ENODEV;
 	}
@@ -215,6 +219,8 @@ vhost_transport_send_pkt(struct virtio_v
 	spin_unlock_bh(&vsock->send_pkt_list_lock);
 
 	vhost_work_queue(&vsock->dev, &vsock->send_pkt_work);
+
+	rcu_read_unlock();
 	return len;
 }
 
@@ -224,12 +230,15 @@ vhost_transport_cancel_pkt(struct vsock_
 	struct vhost_vsock *vsock;
 	struct virtio_vsock_pkt *pkt, *n;
 	int cnt = 0;
+	int ret = -ENODEV;
 	LIST_HEAD(freeme);
 
+	rcu_read_lock();
+
 	/* Find the vhost_vsock according to guest context id  */
 	vsock = vhost_vsock_get(vsk->remote_addr.svm_cid);
 	if (!vsock)
-		return -ENODEV;
+		goto out;
 
 	spin_lock_bh(&vsock->send_pkt_list_lock);
 	list_for_each_entry_safe(pkt, n, &vsock->send_pkt_list, list) {
@@ -255,7 +264,10 @@ vhost_transport_cancel_pkt(struct vsock_
 			vhost_poll_queue(&tx_vq->poll);
 	}
 
-	return 0;
+	ret = 0;
+out:
+	rcu_read_unlock();
+	return ret;
 }
 
 static struct virtio_vsock_pkt *
@@ -521,10 +533,6 @@ static int vhost_vsock_dev_open(struct i
 	spin_lock_init(&vsock->send_pkt_list_lock);
 	INIT_LIST_HEAD(&vsock->send_pkt_list);
 	vhost_work_init(&vsock->send_pkt_work, vhost_transport_send_pkt_work);
-
-	spin_lock_bh(&vhost_vsock_lock);
-	list_add_tail(&vsock->list, &vhost_vsock_list);
-	spin_unlock_bh(&vhost_vsock_lock);
 	return 0;
 
 out:
@@ -565,9 +573,13 @@ static int vhost_vsock_dev_release(struc
 	struct vhost_vsock *vsock = file->private_data;
 
 	spin_lock_bh(&vhost_vsock_lock);
-	list_del(&vsock->list);
+	if (vsock->guest_cid)
+		hash_del_rcu(&vsock->hash);
 	spin_unlock_bh(&vhost_vsock_lock);
 
+	/* Wait for other CPUs to finish using vsock */
+	synchronize_rcu();
+
 	/* Iterating over all connections for all CIDs to find orphans is
 	 * inefficient.  Room for improvement here. */
 	vsock_for_each_connected_socket(vhost_vsock_reset_orphans);
@@ -607,12 +619,18 @@ static int vhost_vsock_set_cid(struct vh
 		return -EINVAL;
 
 	/* Refuse if CID is already in use */
+	spin_lock_bh(&vhost_vsock_lock);
 	other = vhost_vsock_get(guest_cid);
-	if (other && other != vsock)
+	if (other && other != vsock) {
+		spin_unlock_bh(&vhost_vsock_lock);
 		return -EADDRINUSE;
+	}
+
+	if (vsock->guest_cid)
+		hash_del_rcu(&vsock->hash);
 
-	spin_lock_bh(&vhost_vsock_lock);
 	vsock->guest_cid = guest_cid;
+	hash_add_rcu(vhost_vsock_hash, &vsock->hash, guest_cid);
 	spin_unlock_bh(&vhost_vsock_lock);
 
 	return 0;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/fs/cifs/dir.c linux-libre-4.9.145-gnu/fs/cifs/dir.c
--- linux-libre-4.9.144-gnu/fs/cifs/dir.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/fs/cifs/dir.c	2018-12-13 03:20:30.000000000 -0500
@@ -163,7 +163,7 @@ cifs_bp_rename_retry:
 
 		cifs_dbg(FYI, "using cifs_sb prepath <%s>\n", cifs_sb->prepath);
 		memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1);
-		full_path[dfsplen] = '\\';
+		full_path[dfsplen] = dirsep;
 		for (i = 0; i < pplen-1; i++)
 			if (full_path[dfsplen+1+i] == '/')
 				full_path[dfsplen+1+i] = CIFS_DIR_SEP(cifs_sb);
diff -druNp --no-dereference linux-libre-4.9.144-gnu/include/linux/usb.h linux-libre-4.9.145-gnu/include/linux/usb.h
--- linux-libre-4.9.144-gnu/include/linux/usb.h	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/include/linux/usb.h	2018-12-13 03:20:30.000000000 -0500
@@ -336,11 +336,11 @@ struct usb_host_bos {
 };
 
 int __usb_get_extra_descriptor(char *buffer, unsigned size,
-	unsigned char type, void **ptr);
+	unsigned char type, void **ptr, size_t min);
 #define usb_get_extra_descriptor(ifpoint, type, ptr) \
 				__usb_get_extra_descriptor((ifpoint)->extra, \
 				(ifpoint)->extralen, \
-				type, (void **)ptr)
+				type, (void **)ptr, sizeof(**(ptr)))
 
 /* ----------------------------------------------------------------------- */
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/include/sound/pcm_params.h linux-libre-4.9.145-gnu/include/sound/pcm_params.h
--- linux-libre-4.9.144-gnu/include/sound/pcm_params.h	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/include/sound/pcm_params.h	2018-12-13 03:20:30.000000000 -0500
@@ -247,11 +247,13 @@ static inline int snd_interval_empty(con
 static inline int snd_interval_single(const struct snd_interval *i)
 {
 	return (i->min == i->max || 
-		(i->min + 1 == i->max && i->openmax));
+		(i->min + 1 == i->max && (i->openmin || i->openmax)));
 }
 
 static inline int snd_interval_value(const struct snd_interval *i)
 {
+	if (i->openmin && !i->openmax)
+		return i->max;
 	return i->min;
 }
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/lib/swiotlb.c linux-libre-4.9.145-gnu/lib/swiotlb.c
--- linux-libre-4.9.144-gnu/lib/swiotlb.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/lib/swiotlb.c	2018-12-13 03:20:30.000000000 -0500
@@ -17,6 +17,8 @@
  * 08/12/11 beckyb	Add highmem support
  */
 
+#define pr_fmt(fmt) "software IO TLB: " fmt
+
 #include <linux/cache.h>
 #include <linux/dma-mapping.h>
 #include <linux/mm.h>
@@ -147,20 +149,16 @@ static bool no_iotlb_memory;
 void swiotlb_print_info(void)
 {
 	unsigned long bytes = io_tlb_nslabs << IO_TLB_SHIFT;
-	unsigned char *vstart, *vend;
 
 	if (no_iotlb_memory) {
-		pr_warn("software IO TLB: No low mem\n");
+		pr_warn("No low mem\n");
 		return;
 	}
 
-	vstart = phys_to_virt(io_tlb_start);
-	vend = phys_to_virt(io_tlb_end);
-
-	printk(KERN_INFO "software IO TLB [mem %#010llx-%#010llx] (%luMB) mapped at [%p-%p]\n",
+	pr_info("mapped [mem %#010llx-%#010llx] (%luMB)\n",
 	       (unsigned long long)io_tlb_start,
 	       (unsigned long long)io_tlb_end,
-	       bytes >> 20, vstart, vend - 1);
+	       bytes >> 20);
 }
 
 int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose)
@@ -234,7 +232,7 @@ swiotlb_init(int verbose)
 	if (io_tlb_start)
 		memblock_free_early(io_tlb_start,
 				    PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT));
-	pr_warn("Cannot allocate SWIOTLB buffer");
+	pr_warn("Cannot allocate buffer");
 	no_iotlb_memory = true;
 }
 
@@ -276,8 +274,8 @@ swiotlb_late_init_with_default_size(size
 		return -ENOMEM;
 	}
 	if (order != get_order(bytes)) {
-		printk(KERN_WARNING "Warning: only able to allocate %ld MB "
-		       "for software IO TLB\n", (PAGE_SIZE << order) >> 20);
+		pr_warn("only able to allocate %ld MB\n",
+			(PAGE_SIZE << order) >> 20);
 		io_tlb_nslabs = SLABS_PER_PAGE << order;
 	}
 	rc = swiotlb_late_init_with_tbl(vstart, io_tlb_nslabs);
@@ -691,7 +689,7 @@ swiotlb_alloc_coherent(struct device *hw
 	return ret;
 
 err_warn:
-	pr_warn("swiotlb: coherent allocation failed for device %s size=%zu\n",
+	pr_warn("coherent allocation failed for device %s size=%zu\n",
 		dev_name(hwdev), size);
 	dump_stack();
 
diff -druNp --no-dereference linux-libre-4.9.144-gnu/Makefile linux-libre-4.9.145-gnu/Makefile
--- linux-libre-4.9.144-gnu/Makefile	2018-12-08 15:33:57.000000000 -0500
+++ linux-libre-4.9.145-gnu/Makefile	2018-12-13 13:27:09.000000000 -0500
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 9
-SUBLEVEL = 144
+SUBLEVEL = 145
 EXTRAVERSION = -gnu
 NAME = Roaring Lionus
 
@@ -512,13 +512,15 @@ endif
 ifeq ($(cc-name),clang)
 ifneq ($(CROSS_COMPILE),)
 CLANG_TARGET	:= -target $(notdir $(CROSS_COMPILE:%-=%))
-GCC_TOOLCHAIN	:= $(realpath $(dir $(shell which $(LD)))/..)
+GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
+CLANG_PREFIX	:= --prefix=$(GCC_TOOLCHAIN_DIR)
+GCC_TOOLCHAIN	:= $(realpath $(GCC_TOOLCHAIN_DIR)/..)
 endif
 ifneq ($(GCC_TOOLCHAIN),)
 CLANG_GCC_TC	:= -gcc-toolchain $(GCC_TOOLCHAIN)
 endif
-KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
-KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
+KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
+KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
 KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
 KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
 KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/mm/page_alloc.c linux-libre-4.9.145-gnu/mm/page_alloc.c
--- linux-libre-4.9.144-gnu/mm/page_alloc.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/mm/page_alloc.c	2018-12-13 03:20:30.000000000 -0500
@@ -3530,8 +3530,6 @@ __alloc_pages_slowpath(gfp_t gfp_mask, u
 	enum compact_result compact_result;
 	int compaction_retries;
 	int no_progress_loops;
-	unsigned long alloc_start = jiffies;
-	unsigned int stall_timeout = 10 * HZ;
 	unsigned int cpuset_mems_cookie;
 
 	/*
@@ -3704,14 +3702,6 @@ retry:
 	if (order > PAGE_ALLOC_COSTLY_ORDER && !(gfp_mask & __GFP_REPEAT))
 		goto nopage;
 
-	/* Make sure we know about allocations which stall for too long */
-	if (time_after(jiffies, alloc_start + stall_timeout)) {
-		warn_alloc(gfp_mask,
-			"page allocation stalls for %ums, order:%u",
-			jiffies_to_msecs(jiffies-alloc_start), order);
-		stall_timeout += 10 * HZ;
-	}
-
 	if (should_reclaim_retry(gfp_mask, order, ac, alloc_flags,
 				 did_some_progress > 0, &no_progress_loops))
 		goto retry;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/batman-adv/fragmentation.c linux-libre-4.9.145-gnu/net/batman-adv/fragmentation.c
--- linux-libre-4.9.144-gnu/net/batman-adv/fragmentation.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/batman-adv/fragmentation.c	2018-12-13 03:20:30.000000000 -0500
@@ -264,7 +264,7 @@ batadv_frag_merge_packets(struct hlist_h
 	kfree(entry);
 
 	packet = (struct batadv_frag_packet *)skb_out->data;
-	size = ntohs(packet->total_size);
+	size = ntohs(packet->total_size) + hdr_size;
 
 	/* Make room for the rest of the fragments. */
 	if (pskb_expand_head(skb_out, 0, size - skb_out->len, GFP_ATOMIC) < 0) {
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/mac80211/iface.c linux-libre-4.9.145-gnu/net/mac80211/iface.c
--- linux-libre-4.9.144-gnu/net/mac80211/iface.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/mac80211/iface.c	2018-12-13 03:20:30.000000000 -0500
@@ -1025,6 +1025,8 @@ static void ieee80211_do_stop(struct iee
 	if (local->open_count == 0)
 		ieee80211_clear_tx_pending(local);
 
+	sdata->vif.bss_conf.beacon_int = 0;
+
 	/*
 	 * If the interface goes down while suspended, presumably because
 	 * the device was unplugged and that happens before our resume,
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/mac80211/rx.c linux-libre-4.9.145-gnu/net/mac80211/rx.c
--- linux-libre-4.9.144-gnu/net/mac80211/rx.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/mac80211/rx.c	2018-12-13 03:20:30.000000000 -0500
@@ -1230,6 +1230,7 @@ ieee80211_rx_h_check_dup(struct ieee8021
 		return RX_CONTINUE;
 
 	if (ieee80211_is_ctl(hdr->frame_control) ||
+	    ieee80211_is_nullfunc(hdr->frame_control) ||
 	    ieee80211_is_qos_nullfunc(hdr->frame_control) ||
 	    is_multicast_ether_addr(hdr->addr1))
 		return RX_CONTINUE;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/mac80211/status.c linux-libre-4.9.145-gnu/net/mac80211/status.c
--- linux-libre-4.9.144-gnu/net/mac80211/status.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/mac80211/status.c	2018-12-13 03:20:30.000000000 -0500
@@ -660,6 +660,8 @@ void ieee80211_tx_status_noskb(struct ie
 			/* Track when last TDLS packet was ACKed */
 			if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH))
 				sta->status_stats.last_tdls_pkt_time = jiffies;
+		} else if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
+			return;
 		} else {
 			ieee80211_lost_packet(sta, info);
 		}
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/mac80211/tx.c linux-libre-4.9.145-gnu/net/mac80211/tx.c
--- linux-libre-4.9.144-gnu/net/mac80211/tx.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/mac80211/tx.c	2018-12-13 03:20:30.000000000 -0500
@@ -434,8 +434,8 @@ ieee80211_tx_h_multicast_ps_buf(struct i
 	if (ieee80211_hw_check(&tx->local->hw, QUEUE_CONTROL))
 		info->hw_queue = tx->sdata->vif.cab_queue;
 
-	/* no stations in PS mode */
-	if (!atomic_read(&ps->num_sta_ps))
+	/* no stations in PS mode and no buffered packets */
+	if (!atomic_read(&ps->num_sta_ps) && skb_queue_empty(&ps->bc_buf))
 		return TX_CONTINUE;
 
 	info->flags |= IEEE80211_TX_CTL_SEND_AFTER_DTIM;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/net/sunrpc/auth_gss/auth_gss.c linux-libre-4.9.145-gnu/net/sunrpc/auth_gss/auth_gss.c
--- linux-libre-4.9.144-gnu/net/sunrpc/auth_gss/auth_gss.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/net/sunrpc/auth_gss/auth_gss.c	2018-12-13 03:20:30.000000000 -0500
@@ -1736,6 +1736,7 @@ priv_release_snd_buf(struct rpc_rqst *rq
 	for (i=0; i < rqstp->rq_enc_pages_num; i++)
 		__free_page(rqstp->rq_enc_pages[i]);
 	kfree(rqstp->rq_enc_pages);
+	rqstp->rq_release_snd_buf = NULL;
 }
 
 static int
@@ -1744,6 +1745,9 @@ alloc_enc_pages(struct rpc_rqst *rqstp)
 	struct xdr_buf *snd_buf = &rqstp->rq_snd_buf;
 	int first, last, i;
 
+	if (rqstp->rq_release_snd_buf)
+		rqstp->rq_release_snd_buf(rqstp);
+
 	if (snd_buf->page_len == 0) {
 		rqstp->rq_enc_pages_num = 0;
 		return 0;
diff -druNp --no-dereference linux-libre-4.9.144-gnu/scripts/Kbuild.include linux-libre-4.9.145-gnu/scripts/Kbuild.include
--- linux-libre-4.9.144-gnu/scripts/Kbuild.include	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/scripts/Kbuild.include	2018-12-13 03:20:30.000000000 -0500
@@ -162,12 +162,13 @@ cc-ifversion = $(shell [ $(cc-version) $
 # cc-ldoption
 # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both)
 cc-ldoption = $(call try-run,\
-	$(CC) $(1) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2))
+	$(CC) $(1) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2))
 
 # ld-option
 # Usage: LDFLAGS += $(call ld-option, -X)
 ld-option = $(call try-run,\
-	$(CC) -x c /dev/null -c -o "$$TMPO" ; $(LD) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))
+	$(CC) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -x c /dev/null -c -o "$$TMPO"; \
+	$(LD) $(LDFLAGS) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))
 
 # ar-option
 # Usage: KBUILD_ARFLAGS := $(call ar-option,D)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/sound/core/pcm_native.c linux-libre-4.9.145-gnu/sound/core/pcm_native.c
--- linux-libre-4.9.144-gnu/sound/core/pcm_native.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/sound/core/pcm_native.c	2018-12-13 03:20:30.000000000 -0500
@@ -35,6 +35,7 @@
 #include <sound/timer.h>
 #include <sound/minors.h>
 #include <linux/uio.h>
+#include <linux/delay.h>
 
 /*
  *  Compatibility
@@ -78,12 +79,12 @@ static DECLARE_RWSEM(snd_pcm_link_rwsem)
  * and this may lead to a deadlock when the code path takes read sem
  * twice (e.g. one in snd_pcm_action_nonatomic() and another in
  * snd_pcm_stream_lock()).  As a (suboptimal) workaround, let writer to
- * spin until it gets the lock.
+ * sleep until all the readers are completed without blocking by writer.
  */
-static inline void down_write_nonblock(struct rw_semaphore *lock)
+static inline void down_write_nonfifo(struct rw_semaphore *lock)
 {
 	while (!down_write_trylock(lock))
-		cond_resched();
+		msleep(1);
 }
 
 /**
@@ -1825,7 +1826,7 @@ static int snd_pcm_link(struct snd_pcm_s
 		res = -ENOMEM;
 		goto _nolock;
 	}
-	down_write_nonblock(&snd_pcm_link_rwsem);
+	down_write_nonfifo(&snd_pcm_link_rwsem);
 	write_lock_irq(&snd_pcm_link_rwlock);
 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN ||
 	    substream->runtime->status->state != substream1->runtime->status->state ||
@@ -1872,7 +1873,7 @@ static int snd_pcm_unlink(struct snd_pcm
 	struct snd_pcm_substream *s;
 	int res = 0;
 
-	down_write_nonblock(&snd_pcm_link_rwsem);
+	down_write_nonfifo(&snd_pcm_link_rwsem);
 	write_lock_irq(&snd_pcm_link_rwlock);
 	if (!snd_pcm_stream_linked(substream)) {
 		res = -EALREADY;
@@ -2224,7 +2225,8 @@ int snd_pcm_hw_constraints_complete(stru
 
 static void pcm_release_private(struct snd_pcm_substream *substream)
 {
-	snd_pcm_unlink(substream);
+	if (snd_pcm_stream_linked(substream))
+		snd_pcm_unlink(substream);
 }
 
 void snd_pcm_release_substream(struct snd_pcm_substream *substream)
diff -druNp --no-dereference linux-libre-4.9.144-gnu/sound/pci/hda/hda_intel.c linux-libre-4.9.145-gnu/sound/pci/hda/hda_intel.c
--- linux-libre-4.9.144-gnu/sound/pci/hda/hda_intel.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/sound/pci/hda/hda_intel.c	2018-12-13 03:20:30.000000000 -0500
@@ -2352,6 +2352,10 @@ static const struct pci_device_id azx_id
 	/* AMD Hudson */
 	{ PCI_DEVICE(0x1022, 0x780d),
 	  .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_SB },
+	/* AMD Stoney */
+	{ PCI_DEVICE(0x1022, 0x157a),
+	  .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_SB |
+			 AZX_DCAPS_PM_RUNTIME },
 	/* AMD Raven */
 	{ PCI_DEVICE(0x1022, 0x15e3),
 	  .driver_data = AZX_DRIVER_GENERIC | AZX_DCAPS_PRESET_ATI_SB |
diff -druNp --no-dereference linux-libre-4.9.144-gnu/sound/pci/hda/patch_realtek.c linux-libre-4.9.145-gnu/sound/pci/hda/patch_realtek.c
--- linux-libre-4.9.144-gnu/sound/pci/hda/patch_realtek.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/sound/pci/hda/patch_realtek.c	2018-12-13 03:20:30.000000000 -0500
@@ -4489,9 +4489,18 @@ static void alc_fixup_tpt470_dock(struct
 		{ 0x19, 0x21a11010 }, /* dock mic */
 		{ }
 	};
+	/* Assure the speaker pin to be coupled with DAC NID 0x03; otherwise
+	 * the speaker output becomes too low by some reason on Thinkpads with
+	 * ALC298 codec
+	 */
+	static hda_nid_t preferred_pairs[] = {
+		0x14, 0x03, 0x17, 0x02, 0x21, 0x02,
+		0
+	};
 	struct alc_spec *spec = codec->spec;
 
 	if (action == HDA_FIXUP_ACT_PRE_PROBE) {
+		spec->gen.preferred_dacs = preferred_pairs;
 		spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
 		snd_hda_apply_pincfgs(codec, pincfgs);
 	} else if (action == HDA_FIXUP_ACT_INIT) {
diff -druNp --no-dereference linux-libre-4.9.144-gnu/sound/usb/card.c linux-libre-4.9.145-gnu/sound/usb/card.c
--- linux-libre-4.9.144-gnu/sound/usb/card.c	2018-12-08 07:05:15.000000000 -0500
+++ linux-libre-4.9.145-gnu/sound/usb/card.c	2018-12-13 03:20:30.000000000 -0500
@@ -644,9 +644,12 @@ static int usb_audio_probe(struct usb_in
 
  __error:
 	if (chip) {
+		/* chip->active is inside the chip->card object,
+		 * decrement before memory is possibly returned.
+		 */
+		atomic_dec(&chip->active);
 		if (!chip->num_interfaces)
 			snd_card_free(chip->card);
-		atomic_dec(&chip->active);
 	}
 	mutex_unlock(&register_mutex);
 	return err;
