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

Commit fcfbef4e authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Free private data on error conditions



Ensure the buffers associated with the file private data
is freed on error conditions.

Change-Id: I21e92ec066c362e4e8897a176ec2a58b762b077a
Acked-by: default avatarHimateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 2af5d1b0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1852,8 +1852,10 @@ static int fastrpc_device_release(struct inode *inode, struct file *file)
		file->private_data = 0;
	}
bail:
	if (err)
	if (err) {
		fastrpc_file_free(fl);
		kfree(pfl);
	}
	return err;
}