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

Commit 2be6f6c0 authored by Rajkumar Raghupathy's avatar Rajkumar Raghupathy Committed by Stephen Boyd
Browse files

USB: Handle allocated buffer freeing after error and unused variables



Free the allocated buffer after an error and remove
unused variables.

CRs-Fixed: 313681
Change-Id: I76ebf946eacac47682a3c510cd7beed3fc3c6437
Signed-off-by: default avatarRajkumar Raghupathy <raghup@codeaurora.org>
parent 005647b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1202,6 +1202,7 @@ static int mass_storage_function_init(struct android_usb_function *f,
				&common->luns[0].dev.kobj,
				"lun");
	if (err) {
		fsg_common_release(&common->ref);
		kfree(config);
		return err;
	}