Loading drivers/media/platform/msm/vidc/venus_hfi.c +4 −3 Original line number Diff line number Diff line /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -852,8 +852,8 @@ static int __vote_buses(struct venus_hfi_device *device, struct vidc_bus_vote_data *new_data = NULL; if (!num_data) { /* Meh nothing to do */ return 0; dprintk(VIDC_DBG, "No vote data available\n"); goto no_data_count; } else if (!data) { dprintk(VIDC_ERR, "Invalid voting data\n"); return -EINVAL; Loading @@ -866,6 +866,7 @@ static int __vote_buses(struct venus_hfi_device *device, goto err_no_mem; } no_data_count: kfree(device->bus_vote.data); device->bus_vote.data = new_data; device->bus_vote.data_count = num_data; Loading Loading
drivers/media/platform/msm/vidc/venus_hfi.c +4 −3 Original line number Diff line number Diff line /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -852,8 +852,8 @@ static int __vote_buses(struct venus_hfi_device *device, struct vidc_bus_vote_data *new_data = NULL; if (!num_data) { /* Meh nothing to do */ return 0; dprintk(VIDC_DBG, "No vote data available\n"); goto no_data_count; } else if (!data) { dprintk(VIDC_ERR, "Invalid voting data\n"); return -EINVAL; Loading @@ -866,6 +866,7 @@ static int __vote_buses(struct venus_hfi_device *device, goto err_no_mem; } no_data_count: kfree(device->bus_vote.data); device->bus_vote.data = new_data; device->bus_vote.data_count = num_data; Loading