qcacmn: Fix for write operations in wmi_recording
Change incorrect extraction of wmi_handle from file handler reference during write operations, performed on debugfs files in wmi_recording/wmi logging. IR-Fixed: 189093 CRs-Fixed: 1111722 Change-Id: I0603efe8f8e2530950f845f9ef9419b6784c626f
This commit is contained in:

committed by
qcabuildsw

parent
17b9e9ed33
commit
dad75ffbce
@@ -728,7 +728,8 @@ static int debug_wmi_log_size_show(struct seq_file *m, void *v)
|
|||||||
size_t count, loff_t *ppos) \
|
size_t count, loff_t *ppos) \
|
||||||
{ \
|
{ \
|
||||||
int k, ret; \
|
int k, ret; \
|
||||||
wmi_unified_t wmi_handle = file->private_data; \
|
wmi_unified_t wmi_handle = \
|
||||||
|
((struct seq_file *)file->private_data)->private;\
|
||||||
struct wmi_log_buf_t *wmi_log = &wmi_handle->log_info. \
|
struct wmi_log_buf_t *wmi_log = &wmi_handle->log_info. \
|
||||||
wmi_##func_base##_buf_info; \
|
wmi_##func_base##_buf_info; \
|
||||||
\
|
\
|
||||||
@@ -777,7 +778,8 @@ GENERATE_DEBUG_WRITE_FUNCS(mgmt_event_log, wmi_mgmt_log_max_entry,
|
|||||||
static ssize_t debug_wmi_enable_write(struct file *file, const char __user *buf,
|
static ssize_t debug_wmi_enable_write(struct file *file, const char __user *buf,
|
||||||
size_t count, loff_t *ppos)
|
size_t count, loff_t *ppos)
|
||||||
{
|
{
|
||||||
wmi_unified_t wmi_handle = file->private_data;
|
wmi_unified_t wmi_handle =
|
||||||
|
((struct seq_file *)file->private_data)->private;
|
||||||
int k, ret;
|
int k, ret;
|
||||||
|
|
||||||
ret = sscanf(buf, "%d", &k);
|
ret = sscanf(buf, "%d", &k);
|
||||||
|
Reference in New Issue
Block a user