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

Commit 582ff179 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Check input arguments correctly"

parents 1ad1e65b c73ddf7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ int create_pkt_cmd_session_parse_seq_header(
		u32 session_id, struct vidc_seq_hdr *seq_hdr)
{
	int rc = 0;
	if (!pkt || !session_id || seq_hdr)
	if (!pkt || !session_id || !seq_hdr)
		return -EINVAL;

	pkt->size = sizeof(struct hfi_cmd_session_parse_sequence_header_packet);
+1 −1
Original line number Diff line number Diff line
@@ -3230,7 +3230,7 @@ int msm_vidc_trigger_ssr(struct msm_vidc_core *core,
{
	int rc = 0;
	struct hfi_device *hdev;
	if (!core && !core->device) {
	if (!core || !core->device) {
		dprintk(VIDC_WARN, "Invalid parameters: %p\n", core);
		return -EINVAL;
	}
+1 −1
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ static int msm_vidc_load_bus_vector(struct platform_device *pdev,
		bus_pdata->usecase[i].vectors = kzalloc(
			sizeof(*bus_pdata->usecase[i].vectors) * num_ports,
			GFP_KERNEL);
		if (!bus_pdata->usecase) {
		if (!bus_pdata->usecase[i].vectors) {
			dprintk(VIDC_ERR,
				"%s Failed to alloc bus_pdata usecase\n",
				__func__);