diff --git a/drivers/char/diag/diag_dci.c b/drivers/char/diag/diag_dci.c index 04cb96abc75..d905169a303 100644 --- a/drivers/char/diag/diag_dci.c +++ b/drivers/char/diag/diag_dci.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2020, 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 @@ -2201,6 +2201,7 @@ fail_alloc: kfree(new_entry->dci_log_mask); } kfree(new_entry); + put_task_struct(current); mutex_unlock(&driver->dci_mutex); return DIAG_DCI_NO_REG; }