summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec.c17
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec.h14
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec_drv.c2
-rw-r--r--drivers/amvdec_ports/decoder/vdec_h264_if.c4
-rw-r--r--drivers/amvdec_ports/decoder/vdec_hevc_if.c4
-rw-r--r--drivers/amvdec_ports/decoder/vdec_vp9_if.c4
6 files changed, 20 insertions, 25 deletions
diff --git a/drivers/amvdec_ports/decoder/vdec_h264_if.c b/drivers/amvdec_ports/decoder/vdec_h264_if.c
index 3fdac28..8a740c5 100644
--- a/drivers/amvdec_ports/decoder/vdec_h264_if.c
+++ b/drivers/amvdec_ports/decoder/vdec_h264_if.c
@@ -584,7 +584,7 @@ static int stream_parse(struct vdec_h264_inst *inst, u8 *buf, u32 size)
inst->vsi->is_combine = is_combine;
inst->vsi->nalu_pos = nal_idx;
- ps = kzalloc(sizeof(struct h264_param_sets), GFP_KERNEL);
+ ps = vzalloc(sizeof(struct h264_param_sets));
if (ps == NULL)
return -ENOMEM;
@@ -599,7 +599,7 @@ static int stream_parse(struct vdec_h264_inst *inst, u8 *buf, u32 size)
ret = ps->sps_parsed ? 0 : -1;
out:
- kfree(ps);
+ vfree(ps);
return ret;
}