@@ -712,8 +712,6 @@ static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar)
unsigned int len, sofar = 0;
unsigned char *buf;
- lockdep_assert_held(&ar->conf_mutex);
-
len = hdr_len;
len += sizeof(*dump_tlv) + sizeof(crash_data->registers);
@@ -785,22 +783,14 @@ static int ath10k_fw_crash_dump_open(struct inode *inode, struct file *file)
{
struct ath10k *ar = inode->i_private;
struct ath10k_dump_file_data *dump;
- int ret;
-
- mutex_lock(&ar->conf_mutex);
dump = ath10k_build_dump_file(ar);
- if (!dump) {
- ret = -ENODATA;
- goto out;
- }
+ if (!dump)
+ return -ENODATA;
file->private_data = dump;
- ret = 0;
-out:
- mutex_unlock(&ar->conf_mutex);
- return ret;
+ return 0;
}
static ssize_t ath10k_fw_crash_dump_read(struct file *file,