Revert "usb: gadget: uvc: cleanup request when not in correct state"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

commit dddc00f255415b826190cfbaa5d6dbc87cd9ded1 upstream.

This reverts commit 52a39f2cf62bb5430ad1f54cd522dbfdab1d71ba.

Based on review comments, it was applied too soon and needs more work.

Reported-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20231005081716.GA13853@xxxxxxxxxxxxxxxxxxxxxxxxxx
Cc: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/usb/gadget/function/uvc_video.c |    6 ------
 1 file changed, 6 deletions(-)

--- a/drivers/usb/gadget/function/uvc_video.c
+++ b/drivers/usb/gadget/function/uvc_video.c
@@ -259,12 +259,6 @@ uvc_video_complete(struct usb_ep *ep, st
 	struct uvc_device *uvc = video->uvc;
 	unsigned long flags;
 
-	if (uvc->state == UVC_STATE_CONNECTED) {
-		usb_ep_free_request(video->ep, ureq->req);
-		ureq->req = NULL;
-		return;
-	}
-
 	switch (req->status) {
 	case 0:
 		break;


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-6.1/s390-dasd-fix-error-recovery-leading-to-data-corruption-on-ese-devices.patch
queue-6.1/dm-persistent-data-fix-memory-allocation-failure.patch
queue-6.1/fs-ntfs3-add-prefix-to-bitmap_size-and-use-bits_to_u64.patch
queue-6.1/riscv-change-xip-s-kernel_map.size-to-be-size-of-the-entire-kernel.patch
queue-6.1/input-i8042-add-forcenorestore-quirk-to-leave-controller-untouched-even-on-s3.patch
queue-6.1/drm-amdgpu-actually-check-flags-for-all-context-ops.patch
queue-6.1/char-xillybus-refine-workqueue-handling.patch
queue-6.1/mptcp-pm-only-decrement-add_addr_accepted-for-mpj-req.patch
queue-6.1/media-solo6x10-replace-max-a-min-b-c-by-clamp-b-a-c.patch
queue-6.1/hwmon-ltc2992-fix-memory-leak-in-ltc2992_parse_dt.patch
queue-6.1/i2c-qcom-geni-add-missing-geni_icc_disable-in-geni_i2c_runtime_resume.patch
queue-6.1/alsa-usb-audio-support-yamaha-p-125-quirk-entry.patch
queue-6.1/mm-memory-failure-use-raw_spinlock_t-in-struct-memory_failure_cpu.patch
queue-6.1/s390-cio-rename-bitmap_size-idset_bitmap_size.patch
queue-6.1/revert-drm-amd-display-validate-hw_points_num-before-using-it.patch
queue-6.1/tty-atmel_serial-use-the-correct-rts-flag.patch
queue-6.1/staging-ks7010-disable-bh-on-tx_dev_lock.patch
queue-6.1/char-xillybus-don-t-destroy-workqueue-from-work-item-running-on-it.patch
queue-6.1/drm-amdgpu-jpeg2-properly-set-atomics-vmid-field.patch
queue-6.1/char-xillybus-check-usb-endpoints-when-probing-device.patch
queue-6.1/kvm-arm64-make-icc_-sgi-_el1-undef-in-the-absence-of-a-vgicv3.patch
queue-6.1/mptcp-pm-re-using-id-of-unused-flushed-subflows.patch
queue-6.1/xhci-fix-panther-point-null-pointer-deref-at-full-speed-re-enumeration.patch
queue-6.1/usb-gadget-fsl-increase-size-of-name-buffer-for-endp.patch
queue-6.1/alsa-usb-audio-add-delay-quirk-for-vivo-usb-c-xe710-headset.patch
queue-6.1/selinux-fix-potential-counting-error-in-avc_add_xperms_decision.patch
queue-6.1/usb-gadget-uvc-cleanup-request-when-not-in-correct-s.patch
queue-6.1/arm64-acpi-numa-initialize-all-values-of-acpi_early_node_map-to-numa_no_node.patch
queue-6.1/pmdomain-imx-wait-ssar-when-i.mx93-power-domain-on.patch
queue-6.1/ksmbd-the-buffer-of-smb2-query-dir-response-has-at-least-1-byte.patch
queue-6.1/scsi-core-fix-the-return-value-of-scsi_logical_block_count.patch
queue-6.1/dm-resume-don-t-return-einval-when-signalled.patch
queue-6.1/tcp-do-not-export-tcp_twsk_purge.patch
queue-6.1/fix-bitmap-corruption-on-close_range-with-close_range_unshare.patch
queue-6.1/vfs-don-t-evict-inode-under-the-inode-lru-traversing-context.patch
queue-6.1/btrfs-zoned-properly-take-lock-to-read-update-block-group-s-zoned-variables.patch
queue-6.1/bitmap-introduce-generic-optimized-bitmap_size.patch
queue-6.1/fs-netfs-fscache_cookie-add-missing-n_accesses-check.patch
queue-6.1/cxgb4-add-forgotten-u64-ivlan-cast-before-shift.patch
queue-6.1/memcg_write_event_control-fix-a-user-triggerable-oops.patch
queue-6.1/usb-dwc3-core-skip-setting-event-buffers-for-host-on.patch
queue-6.1/hid-microsoft-add-rumble-support-to-latest-xbox-controllers.patch
queue-6.1/input-i8042-use-new-forcenorestore-quirk-to-replace-old-buggy-quirk-combination.patch
queue-6.1/drm-amdgpu-validate-ta-binary-size.patch
queue-6.1/mips-loongson64-set-timer-mode-in-cpu-probe.patch
queue-6.1/mptcp-pm-re-using-id-of-unused-removed-add_addr.patch
queue-6.1/gtp-pull-network-headers-in-gtp_dev_xmit.patch
queue-6.1/revert-usb-gadget-uvc-cleanup-request-when-not-in-correct-state.patch
queue-6.1/kernfs-fix-false-positive-warn-nr_mmapped-in-kernfs_.patch
queue-6.1/fuse-initialize-beyond-eof-page-contents-before-setting-uptodate.patch
queue-6.1/bluetooth-mgmt-add-error-handling-to-pair_device.patch
queue-6.1/hid-wacom-defer-calculation-of-resolution-until-resolution_code-is-known.patch
queue-6.1/mptcp-pm-re-using-id-of-unused-removed-subflows.patch
queue-6.1/btrfs-tree-checker-add-dev-extent-item-checks.patch
queue-6.1/btrfs-rename-bitmap_set_bits-btrfs_bitmap_set_bits.patch
queue-6.1/thunderbolt-mark-xdomain-as-unplugged-when-router-is-removed.patch
queue-6.1/rtla-osnoise-prevent-null-dereference-in-error-handling.patch
queue-6.1/mmc-dw_mmc-allow-biu-and-ciu-clocks-to-defer.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux