Skip to content

Commit 196e684

Browse files
committed
Merge Linux 4.4.254 into 11
Changes in 4.4.254 ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info() ALSA: hda/via: Add minimum mute flag ACPI: scan: Make acpi_bus_get_device() clear return pointer on error dm: avoid filesystem lookup in dm_get_dev_t() ASoC: Intel: haswell: Add missing pm_ops scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback drm/nouveau/bios: fix issue shadowing expansion ROMs drm/nouveau/i2c/gm200: increase width of aux semaphore owner fields can: dev: can_restart: fix use after free bug iio: ad5504: Fix setting power-down state ehci: fix EHCI host controller initialization sequence usb: bdc: Make bdc pci driver depend on BROKEN xhci: make sure TRB is fully written before giving it to the controller compiler.h: Raise minimum version of GCC to 5.1 for arm64 netfilter: rpfilter: mask ecn bits before fib lookup sh: dma: fix kconfig dependency for G2_DMA sh_eth: Fix power down vs. is_opened flag ordering skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too ipv6: create multicast route with RTPROT_KERNEL net_sched: avoid shift-out-of-bounds in tcindex_set_parms() Revert "mm/slub: fix a memory leak in sysfs_slab_add()" tracing: Fix race in trace_open and buffer resize call xen-blkback: set ring->xenblkd to NULL after kthread_stop() x86/boot/compressed: Disable relocation relaxation Linux 4.4.254
2 parents 42f893a + fb6ba63 commit 196e684

File tree

25 files changed

+77
-37
lines changed

25 files changed

+77
-37
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 4
22
PATCHLEVEL = 4
3-
SUBLEVEL = 253
3+
SUBLEVEL = 254
44
EXTRAVERSION =
55
NAME = Blurry Fish Butt
66

arch/sh/drivers/dma/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ config PVR2_DMA
6262

6363
config G2_DMA
6464
tristate "G2 Bus DMA support"
65-
depends on SH_DREAMCAST
66-
select SH_DMA_API
65+
depends on SH_DREAMCAST && SH_DMA_API
6766
help
6867
This enables support for the DMA controller for the Dreamcast's
6968
G2 bus. Drivers that want this will generally enable this on

arch/x86/boot/compressed/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ KBUILD_CFLAGS += -mno-mmx -mno-sse
3434
KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
3535
KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector)
3636
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
37+
# Disable relocation relaxation in case the link is not PIE.
38+
KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no)
3739

3840
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
3941
GCOV_PROFILE := n

drivers/acpi/scan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ static int acpi_get_device_data(acpi_handle handle, struct acpi_device **device,
564564
if (!device)
565565
return -EINVAL;
566566

567+
*device = NULL;
568+
567569
status = acpi_get_data_full(handle, acpi_scan_drop_device,
568570
(void **)device, callback);
569571
if (ACPI_FAILURE(status) || !*device) {

drivers/block/xen-blkback/xenbus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif)
219219

220220
if (blkif->xenblkd) {
221221
kthread_stop(blkif->xenblkd);
222+
blkif->xenblkd = NULL;
222223
wake_up(&blkif->shutdown_wq);
223224
}
224225

drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ shadow_image(struct nvkm_bios *bios, int idx, u32 offset, struct shadow *mthd)
7575
nvkm_debug(subdev, "%08x: type %02x, %d bytes\n",
7676
image.base, image.type, image.size);
7777

78-
if (!shadow_fetch(bios, mthd, image.size)) {
78+
if (!shadow_fetch(bios, mthd, image.base + image.size)) {
7979
nvkm_debug(subdev, "%08x: fetch failed\n", image.base);
8080
return 0;
8181
}

drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm204.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void
3333
gm204_i2c_aux_fini(struct gm204_i2c_aux *aux)
3434
{
3535
struct nvkm_device *device = aux->base.pad->i2c->subdev.device;
36-
nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00310000, 0x00000000);
36+
nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00710000, 0x00000000);
3737
}
3838

3939
static int
@@ -54,10 +54,10 @@ gm204_i2c_aux_init(struct gm204_i2c_aux *aux)
5454
AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl);
5555
return -EBUSY;
5656
}
57-
} while (ctrl & 0x03010000);
57+
} while (ctrl & 0x07010000);
5858

5959
/* set some magic, and wait up to 1ms for it to appear */
60-
nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00300000, ureq);
60+
nvkm_mask(device, 0x00d954 + (aux->ch * 0x50), 0x00700000, ureq);
6161
timeout = 1000;
6262
do {
6363
ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50));
@@ -67,7 +67,7 @@ gm204_i2c_aux_init(struct gm204_i2c_aux *aux)
6767
gm204_i2c_aux_fini(aux);
6868
return -EBUSY;
6969
}
70-
} while ((ctrl & 0x03000000) != urep);
70+
} while ((ctrl & 0x07000000) != urep);
7171

7272
return 0;
7373
}

drivers/iio/dac/ad5504.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ static ssize_t ad5504_write_dac_powerdown(struct iio_dev *indio_dev,
189189
return ret;
190190

191191
if (pwr_down)
192-
st->pwr_down_mask |= (1 << chan->channel);
193-
else
194192
st->pwr_down_mask &= ~(1 << chan->channel);
193+
else
194+
st->pwr_down_mask |= (1 << chan->channel);
195195

196196
ret = ad5504_spi_write(st, AD5504_ADDR_CTRL,
197197
AD5504_DAC_PWRDWN_MODE(st->pwr_down_mode) |

drivers/md/dm-table.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,23 @@ int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
394394
{
395395
int r;
396396
dev_t dev;
397+
unsigned int major, minor;
398+
char dummy;
397399
struct dm_dev_internal *dd;
398400
struct dm_table *t = ti->table;
399401

400402
BUG_ON(!t);
401403

402-
dev = dm_get_dev_t(path);
403-
if (!dev)
404-
return -ENODEV;
404+
if (sscanf(path, "%u:%u%c", &major, &minor, &dummy) == 2) {
405+
/* Extract the major/minor numbers */
406+
dev = MKDEV(major, minor);
407+
if (MAJOR(dev) != major || MINOR(dev) != minor)
408+
return -EOVERFLOW;
409+
} else {
410+
dev = dm_get_dev_t(path);
411+
if (!dev)
412+
return -ENODEV;
413+
}
405414

406415
dd = find_device(&t->devices, dev);
407416
if (!dd) {

drivers/net/can/dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ static void can_restart(struct net_device *dev)
525525
}
526526
cf->can_id |= CAN_ERR_RESTARTED;
527527

528-
netif_rx_ni(skb);
529-
530528
stats->rx_packets++;
531529
stats->rx_bytes += cf->can_dlc;
532530

531+
netif_rx_ni(skb);
532+
533533
restart:
534534
netdev_dbg(dev, "restarted\n");
535535
priv->can_stats.restarts++;

0 commit comments

Comments
 (0)