Skip to content

Commit 4720e8b

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.12.y' into v6.12+
2 parents 47900d6 + d390303 commit 4720e8b

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 12
4-
SUBLEVEL = 0
4+
SUBLEVEL = 1
55
EXTRAVERSION =
66
NAME = Baby Opossum Posse
77

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static int uvc_parse_format(struct uvc_device *dev,
371371
* Parse the frame descriptors. Only uncompressed, MJPEG and frame
372372
* based formats have frame descriptors.
373373
*/
374-
while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE &&
374+
while (ftype && buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE &&
375375
buffer[2] == ftype) {
376376
unsigned int maxIntervalIndex;
377377

mm/mmap.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,18 @@ static unsigned long __mmap_region(struct file *file, unsigned long addr,
14911491
vm_flags = vma->vm_flags;
14921492
goto file_expanded;
14931493
}
1494-
vma_iter_config(&vmi, addr, end);
1494+
1495+
/*
1496+
* In the unlikely even that more memory was needed, but
1497+
* not available for the vma merge, the vma iterator
1498+
* will have no memory reserved for the write we told
1499+
* the driver was happening. To keep up the ruse,
1500+
* ensure the allocation for the store succeeds.
1501+
*/
1502+
if (vmg_nomem(&vmg)) {
1503+
mas_preallocate(&vmi.mas, vma,
1504+
GFP_KERNEL|__GFP_NOFAIL);
1505+
}
14951506
}
14961507

14971508
vm_flags = vma->vm_flags;

net/vmw_vsock/hyperv_transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ static void hvs_destruct(struct vsock_sock *vsk)
549549
vmbus_hvsock_device_unregister(chan);
550550

551551
kfree(hvs);
552+
vsk->trans = NULL;
552553
}
553554

554555
static int hvs_dgram_bind(struct vsock_sock *vsk, struct sockaddr_vm *addr)

0 commit comments

Comments
 (0)