-rw-r--r-- | drivers/amvdec_ports/aml_vcodec_dec.c | 17 | ||||
-rw-r--r-- | drivers/amvdec_ports/aml_vcodec_dec.h | 14 | ||||
-rw-r--r-- | drivers/amvdec_ports/aml_vcodec_dec_drv.c | 2 | ||||
-rw-r--r-- | drivers/amvdec_ports/decoder/vdec_h264_if.c | 4 | ||||
-rw-r--r-- | drivers/amvdec_ports/decoder/vdec_hevc_if.c | 4 | ||||
-rw-r--r-- | drivers/amvdec_ports/decoder/vdec_vp9_if.c | 4 |
6 files changed, 20 insertions, 25 deletions
diff --git a/drivers/amvdec_ports/decoder/vdec_vp9_if.c b/drivers/amvdec_ports/decoder/vdec_vp9_if.c index 4091500..106dc5e 100644 --- a/drivers/amvdec_ports/decoder/vdec_vp9_if.c +++ b/drivers/amvdec_ports/decoder/vdec_vp9_if.c @@ -449,7 +449,7 @@ static int stream_parse(struct vdec_vp9_inst *inst, u8 *buf, u32 size) int ret = 0; struct vp9_param_sets *ps = NULL; - ps = kzalloc(sizeof(struct vp9_param_sets), GFP_KERNEL); + ps = vzalloc(sizeof(struct vp9_param_sets)); if (ps == NULL) return -ENOMEM; @@ -464,7 +464,7 @@ static int stream_parse(struct vdec_vp9_inst *inst, u8 *buf, u32 size) ret = ps->head_parsed ? 0 : -1; out: - kfree(ps); + vfree(ps); return ret; } |