mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
soc: qcom: qmp-debugfs-client: Remove leading and trailing whitespaces
Remove all the leading and trailing whitespaces in the string copied from userspace. Change-Id: I627416dcdb1155303ad6a8ed172910a8653dd67b Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
This commit is contained in:
parent
42270f30bf
commit
bb6bd7c418
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2017-2019, 2021 The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -48,6 +48,11 @@ static ssize_t aop_msg_write(struct file *file, const char __user *userstr,
|
|||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
* Trim the leading and trailing white spaces
|
||||
*/
|
||||
strim(data_pkt[count].buf);
|
||||
|
||||
/*
|
||||
* Controller expects a 4 byte aligned buffer
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue