Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 341dfcca authored by Nathan Chancellor's avatar Nathan Chancellor
Browse files

Merge 4.4.151 into kernel.lnx.4.4.r27-rel



Changes in 4.4.151: (23 commits)
        dccp: fix undefined behavior with 'cwnd' shift in ccid2_cwnd_restart()
        l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache
        llc: use refcount_inc_not_zero() for llc_sap_find()
        net_sched: Fix missing res info when create new tc_index filter
        vsock: split dwork to avoid reinitializations
        net_sched: fix NULL pointer dereference when delete tcindex filter
        ALSA: hda - Sleep for 10ms after entering D3 on Conexant codecs
        ALSA: hda - Turn CX8200 into D3 as well upon reboot
        ALSA: vx222: Fix invalid endian conversions
        ALSA: virmidi: Fix too long output trigger loop
        ALSA: cs5535audio: Fix invalid endian conversion
        ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry
        ALSA: memalloc: Don't exceed over the requested size
        ALSA: vxpocket: Fix invalid endian conversions
        USB: serial: sierra: fix potential deadlock at close
        USB: option: add support for DW5821e
        ACPI: save NVS memory for Lenovo G50-45
        ACPI / PM: save NVS memory for ASUS 1025C laptop
        serial: 8250_dw: always set baud rate in dw8250_set_termios
        x86/mm: Simplify p[g4um]d_page() macros
        Bluetooth: avoid killing an already killed socket
        isdn: Disable IIOCDBGVAR
        Linux 4.4.151

Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
parents d4917499 78f654f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
VERSION = 4
PATCHLEVEL = 4
SUBLEVEL = 150
SUBLEVEL = 151
EXTRAVERSION =
NAME = Blurry Fish Butt

+8 −5
Original line number Diff line number Diff line
@@ -173,6 +173,11 @@ static inline unsigned long pud_pfn(pud_t pud)
	return (pfn & pud_pfn_mask(pud)) >> PAGE_SHIFT;
}

static inline unsigned long pgd_pfn(pgd_t pgd)
{
	return (pgd_val(pgd) & PTE_PFN_MASK) >> PAGE_SHIFT;
}

#define pte_page(pte)	pfn_to_page(pte_pfn(pte))

static inline int pmd_large(pmd_t pte)
@@ -578,8 +583,7 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd)
 * Currently stuck as a macro due to indirect forward reference to
 * linux/mmzone.h's __section_mem_map_addr() definition:
 */
#define pmd_page(pmd)		\
	pfn_to_page((pmd_val(pmd) & pmd_pfn_mask(pmd)) >> PAGE_SHIFT)
#define pmd_page(pmd)	pfn_to_page(pmd_pfn(pmd))

/*
 * the pmd page can be thought of an array like this: pmd_t[PTRS_PER_PMD]
@@ -647,8 +651,7 @@ static inline unsigned long pud_page_vaddr(pud_t pud)
 * Currently stuck as a macro due to indirect forward reference to
 * linux/mmzone.h's __section_mem_map_addr() definition:
 */
#define pud_page(pud)		\
	pfn_to_page((pud_val(pud) & pud_pfn_mask(pud)) >> PAGE_SHIFT)
#define pud_page(pud)	pfn_to_page(pud_pfn(pud))

/* Find an entry in the second-level page table.. */
static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address)
@@ -688,7 +691,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)
 * Currently stuck as a macro due to indirect forward reference to
 * linux/mmzone.h's __section_mem_map_addr() definition:
 */
#define pgd_page(pgd)		pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT)
#define pgd_page(pgd)		pfn_to_page(pgd_pfn(pgd))

/* to find an entry in a page-table-directory. */
static inline unsigned long pud_index(unsigned long address)
+27 −0
Original line number Diff line number Diff line
@@ -124,6 +124,12 @@ void __init acpi_nvs_nosave_s3(void)
	nvs_nosave_s3 = true;
}

static int __init init_nvs_save_s3(const struct dmi_system_id *d)
{
	nvs_nosave_s3 = false;
	return 0;
}

/*
 * ACPI 1.0 wants us to execute _PTS before suspending devices, so we allow the
 * user to request that behavior by using the 'acpi_old_suspend_ordering'
@@ -318,6 +324,27 @@ static struct dmi_system_id acpisleep_dmi_table[] __initdata = {
		DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"),
		},
	},
	{
	.callback = init_nvs_save_s3,
	.ident = "Asus 1025C",
	.matches = {
		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
		DMI_MATCH(DMI_PRODUCT_NAME, "1025C"),
		},
	},
	/*
	 * https://bugzilla.kernel.org/show_bug.cgi?id=189431
	 * Lenovo G50-45 is a platform later than 2012, but needs nvs memory
	 * saving during S3.
	 */
	{
	.callback = init_nvs_save_s3,
	.ident = "Lenovo G50-45",
	.matches = {
		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
		DMI_MATCH(DMI_PRODUCT_NAME, "80E3"),
		},
	},
	{},
};

+1 −7
Original line number Diff line number Diff line
@@ -1655,13 +1655,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
			} else
				return -EINVAL;
		case IIOCDBGVAR:
			if (arg) {
				if (copy_to_user(argp, &dev, sizeof(ulong)))
					return -EFAULT;
				return 0;
			} else
			return -EINVAL;
			break;
		default:
			if ((cmd & IIOCDRVCTL) == IIOCDRVCTL)
				cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) & ISDN_DRVIOCTL_MASK;
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,
	unsigned int rate;
	int ret;

	if (IS_ERR(d->clk) || !old)
	if (IS_ERR(d->clk))
		goto out;

	clk_disable_unprepare(d->clk);
Loading