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

Commit ef703eef authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix null deref in camera service" into main

parents 60cbc2b5 99f44e25
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2462,6 +2462,11 @@ Status CameraService::notifySystemEvent(int32_t eventId,
        }
        case ICameraService::EVENT_USB_DEVICE_ATTACHED:
        case ICameraService::EVENT_USB_DEVICE_DETACHED: {
            if (args.size() != 1) {
                return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT,
                    "USB Device Event requires 1 argument");
            }

            // Notify CameraProviderManager for lazy HALs
            mCameraProviderManager->notifyUsbDeviceEvent(eventId,
                                                        std::to_string(args[0]));