Merge 6.12.1 into android16-6.12
Changes in 6.12.1 hv_sock: Initializing vsk->trans to NULL to prevent a dangling pointer media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_format mm/mmap: fix __mmap_region() error handling in rare merge failure case Linux 6.12.1 Change-Id: I2fed797c764138fdfbf63a87a95cb41d2c016074 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
VERSION = 6
|
||||
PATCHLEVEL = 12
|
||||
SUBLEVEL = 0
|
||||
SUBLEVEL = 1
|
||||
EXTRAVERSION =
|
||||
NAME = Baby Opossum Posse
|
||||
|
||||
|
||||
@@ -371,7 +371,7 @@ static int uvc_parse_format(struct uvc_device *dev,
|
||||
* Parse the frame descriptors. Only uncompressed, MJPEG and frame
|
||||
* based formats have frame descriptors.
|
||||
*/
|
||||
while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE &&
|
||||
while (ftype && buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE &&
|
||||
buffer[2] == ftype) {
|
||||
unsigned int maxIntervalIndex;
|
||||
|
||||
|
||||
@@ -1494,7 +1494,18 @@ static unsigned long __mmap_region(struct file *file, unsigned long addr,
|
||||
vm_flags = vma->vm_flags;
|
||||
goto file_expanded;
|
||||
}
|
||||
vma_iter_config(&vmi, addr, end);
|
||||
|
||||
/*
|
||||
* In the unlikely even that more memory was needed, but
|
||||
* not available for the vma merge, the vma iterator
|
||||
* will have no memory reserved for the write we told
|
||||
* the driver was happening. To keep up the ruse,
|
||||
* ensure the allocation for the store succeeds.
|
||||
*/
|
||||
if (vmg_nomem(&vmg)) {
|
||||
mas_preallocate(&vmi.mas, vma,
|
||||
GFP_KERNEL|__GFP_NOFAIL);
|
||||
}
|
||||
}
|
||||
|
||||
vm_flags = vma->vm_flags;
|
||||
|
||||
@@ -549,6 +549,7 @@ static void hvs_destruct(struct vsock_sock *vsk)
|
||||
vmbus_hvsock_device_unregister(chan);
|
||||
|
||||
kfree(hvs);
|
||||
vsk->trans = NULL;
|
||||
}
|
||||
|
||||
static int hvs_dgram_bind(struct vsock_sock *vsk, struct sockaddr_vm *addr)
|
||||
|
||||
Reference in New Issue
Block a user