diff --git a/drivers/char/diag/diagchar_core.c b/drivers/char/diag/diagchar_core.c index 290bc4bea57..0e1b445dcf9 100644 --- a/drivers/char/diag/diagchar_core.c +++ b/drivers/char/diag/diagchar_core.c @@ -1,4 +1,5 @@ -/* Copyright (c) 2008-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2008-2015, 2017-2018 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 @@ -257,7 +258,7 @@ static int diagchar_open(struct inode *inode, struct file *file) fail: driver->num_clients--; mutex_unlock(&driver->diagchar_mutex); - pr_alert("diag: Insufficient memory for new client"); + pr_err_ratelimited("diag: Insufficient memory for new client"); return -ENOMEM; }