提交 77515eba 编写于 作者: D Duoming Zhou 提交者: Greg Kroah-Hartman

devcoredump: remove the useless gfp_t parameter in dev_coredumpv and dev_coredumpm

The dev_coredumpv() and dev_coredumpm() could not be used in atomic
context, because they call kvasprintf_const() and kstrdup() with
GFP_KERNEL parameter. The process is shown below:

dev_coredumpv(.., gfp_t gfp)
  dev_coredumpm(.., gfp_t gfp)
    dev_set_name
      kobject_set_name_vargs
        kvasprintf_const(GFP_KERNEL, ...); //may sleep
          kstrdup(s, GFP_KERNEL); //may sleep

This patch removes gfp_t parameter of dev_coredumpv() and dev_coredumpm()
and changes the gfp_t parameter of kzalloc() in dev_coredumpm() to
GFP_KERNEL in order to show they could not be used in atomic context.

Fixes: 833c9545 ("device coredump: add new device coredump class")
Reviewed-by: NBrian Norris <briannorris@chromium.org>
Reviewed-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NDuoming Zhou <duoming@zju.edu.cn>
Link: https://lore.kernel.org/r/df72af3b1862bac7d8e793d1f3931857d3779dfd.1654569290.git.duoming@zju.edu.cnSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c21b0837
...@@ -173,15 +173,13 @@ static void devcd_freev(void *data) ...@@ -173,15 +173,13 @@ static void devcd_freev(void *data)
* @dev: the struct device for the crashed device * @dev: the struct device for the crashed device
* @data: vmalloc data containing the device coredump * @data: vmalloc data containing the device coredump
* @datalen: length of the data * @datalen: length of the data
* @gfp: allocation flags
* *
* This function takes ownership of the vmalloc'ed data and will free * This function takes ownership of the vmalloc'ed data and will free
* it when it is no longer used. See dev_coredumpm() for more information. * it when it is no longer used. See dev_coredumpm() for more information.
*/ */
void dev_coredumpv(struct device *dev, void *data, size_t datalen, void dev_coredumpv(struct device *dev, void *data, size_t datalen)
gfp_t gfp)
{ {
dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, devcd_freev); dev_coredumpm(dev, NULL, data, datalen, devcd_readv, devcd_freev);
} }
EXPORT_SYMBOL_GPL(dev_coredumpv); EXPORT_SYMBOL_GPL(dev_coredumpv);
...@@ -236,7 +234,6 @@ static ssize_t devcd_read_from_sgtable(char *buffer, loff_t offset, ...@@ -236,7 +234,6 @@ static ssize_t devcd_read_from_sgtable(char *buffer, loff_t offset,
* @owner: the module that contains the read/free functions, use %THIS_MODULE * @owner: the module that contains the read/free functions, use %THIS_MODULE
* @data: data cookie for the @read/@free functions * @data: data cookie for the @read/@free functions
* @datalen: length of the data * @datalen: length of the data
* @gfp: allocation flags
* @read: function to read from the given buffer * @read: function to read from the given buffer
* @free: function to free the given buffer * @free: function to free the given buffer
* *
...@@ -246,7 +243,7 @@ static ssize_t devcd_read_from_sgtable(char *buffer, loff_t offset, ...@@ -246,7 +243,7 @@ static ssize_t devcd_read_from_sgtable(char *buffer, loff_t offset,
* function will be called to free the data. * function will be called to free the data.
*/ */
void dev_coredumpm(struct device *dev, struct module *owner, void dev_coredumpm(struct device *dev, struct module *owner,
void *data, size_t datalen, gfp_t gfp, void *data, size_t datalen,
ssize_t (*read)(char *buffer, loff_t offset, size_t count, ssize_t (*read)(char *buffer, loff_t offset, size_t count,
void *data, size_t datalen), void *data, size_t datalen),
void (*free)(void *data)) void (*free)(void *data))
...@@ -268,7 +265,7 @@ void dev_coredumpm(struct device *dev, struct module *owner, ...@@ -268,7 +265,7 @@ void dev_coredumpm(struct device *dev, struct module *owner,
if (!try_module_get(owner)) if (!try_module_get(owner))
goto free; goto free;
devcd = kzalloc(sizeof(*devcd), gfp); devcd = kzalloc(sizeof(*devcd), GFP_KERNEL);
if (!devcd) if (!devcd)
goto put_module; goto put_module;
...@@ -318,7 +315,6 @@ EXPORT_SYMBOL_GPL(dev_coredumpm); ...@@ -318,7 +315,6 @@ EXPORT_SYMBOL_GPL(dev_coredumpm);
* @dev: the struct device for the crashed device * @dev: the struct device for the crashed device
* @table: the dump data * @table: the dump data
* @datalen: length of the data * @datalen: length of the data
* @gfp: allocation flags
* *
* Creates a new device coredump for the given device. If a previous one hasn't * Creates a new device coredump for the given device. If a previous one hasn't
* been read yet, the new coredump is discarded. The data lifetime is determined * been read yet, the new coredump is discarded. The data lifetime is determined
...@@ -326,9 +322,9 @@ EXPORT_SYMBOL_GPL(dev_coredumpm); ...@@ -326,9 +322,9 @@ EXPORT_SYMBOL_GPL(dev_coredumpm);
* it will free the data. * it will free the data.
*/ */
void dev_coredumpsg(struct device *dev, struct scatterlist *table, void dev_coredumpsg(struct device *dev, struct scatterlist *table,
size_t datalen, gfp_t gfp) size_t datalen)
{ {
dev_coredumpm(dev, NULL, table, datalen, gfp, devcd_read_from_sgtable, dev_coredumpm(dev, NULL, table, datalen, devcd_read_from_sgtable,
devcd_free_sgtable); devcd_free_sgtable);
} }
EXPORT_SYMBOL_GPL(dev_coredumpsg); EXPORT_SYMBOL_GPL(dev_coredumpsg);
......
...@@ -1515,7 +1515,7 @@ static void btmrvl_sdio_coredump(struct device *dev) ...@@ -1515,7 +1515,7 @@ static void btmrvl_sdio_coredump(struct device *dev)
/* fw_dump_data will be free in device coredump release function /* fw_dump_data will be free in device coredump release function
* after 5 min * after 5 min
*/ */
dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL); dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len);
BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end"); BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end");
} }
......
...@@ -1120,7 +1120,7 @@ static void qca_controller_memdump(struct work_struct *work) ...@@ -1120,7 +1120,7 @@ static void qca_controller_memdump(struct work_struct *work)
qca_memdump->ram_dump_size); qca_memdump->ram_dump_size);
memdump_buf = qca_memdump->memdump_buf_head; memdump_buf = qca_memdump->memdump_buf_head;
dev_coredumpv(&hu->serdev->dev, memdump_buf, dev_coredumpv(&hu->serdev->dev, memdump_buf,
qca_memdump->received_dump, GFP_KERNEL); qca_memdump->received_dump);
cancel_delayed_work(&qca->ctrl_memdump_timeout); cancel_delayed_work(&qca->ctrl_memdump_timeout);
kfree(qca->qca_memdump); kfree(qca->qca_memdump);
qca->qca_memdump = NULL; qca->qca_memdump = NULL;
......
...@@ -225,5 +225,5 @@ void etnaviv_core_dump(struct etnaviv_gem_submit *submit) ...@@ -225,5 +225,5 @@ void etnaviv_core_dump(struct etnaviv_gem_submit *submit)
etnaviv_core_dump_header(&iter, ETDUMP_BUF_END, iter.data); etnaviv_core_dump_header(&iter, ETDUMP_BUF_END, iter.data);
dev_coredumpv(gpu->dev, iter.start, iter.data - iter.start, GFP_KERNEL); dev_coredumpv(gpu->dev, iter.start, iter.data - iter.start);
} }
...@@ -74,8 +74,8 @@ static void _msm_disp_snapshot_work(struct kthread_work *work) ...@@ -74,8 +74,8 @@ static void _msm_disp_snapshot_work(struct kthread_work *work)
* If there is a codedump pending for the device, the dev_coredumpm() * If there is a codedump pending for the device, the dev_coredumpm()
* will also free new coredump state. * will also free new coredump state.
*/ */
dev_coredumpm(disp_state->dev, THIS_MODULE, disp_state, 0, GFP_KERNEL, dev_coredumpm(disp_state->dev, THIS_MODULE, disp_state, 0,
disp_devcoredump_read, msm_disp_state_free); disp_devcoredump_read, msm_disp_state_free);
} }
void msm_disp_snapshot_state(struct drm_device *drm_dev) void msm_disp_snapshot_state(struct drm_device *drm_dev)
......
...@@ -317,8 +317,8 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, ...@@ -317,8 +317,8 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu,
gpu->crashstate = state; gpu->crashstate = state;
/* FIXME: Release the crashstate if this errors out? */ /* FIXME: Release the crashstate if this errors out? */
dev_coredumpm(gpu->dev->dev, THIS_MODULE, gpu, 0, GFP_KERNEL, dev_coredumpm(gpu->dev->dev, THIS_MODULE, gpu, 0,
msm_gpu_devcoredump_read, msm_gpu_devcoredump_free); msm_gpu_devcoredump_read, msm_gpu_devcoredump_free);
} }
#else #else
static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, static void msm_gpu_crashstate_capture(struct msm_gpu *gpu,
......
...@@ -49,7 +49,7 @@ static void venus_coredump(struct venus_core *core) ...@@ -49,7 +49,7 @@ static void venus_coredump(struct venus_core *core)
memcpy(data, mem_va, mem_size); memcpy(data, mem_va, mem_size);
memunmap(mem_va); memunmap(mem_va);
dev_coredumpv(dev, data, mem_size, GFP_KERNEL); dev_coredumpv(dev, data, mem_size);
} }
static void venus_event_notify(struct venus_core *core, u32 event) static void venus_event_notify(struct venus_core *core, u32 event)
......
...@@ -281,5 +281,5 @@ void mcp251xfd_dump(const struct mcp251xfd_priv *priv) ...@@ -281,5 +281,5 @@ void mcp251xfd_dump(const struct mcp251xfd_priv *priv)
mcp251xfd_dump_end(priv, &iter); mcp251xfd_dump_end(priv, &iter);
dev_coredumpv(&priv->spi->dev, iter.start, dev_coredumpv(&priv->spi->dev, iter.start,
iter.data - iter.start, GFP_KERNEL); iter.data - iter.start);
} }
...@@ -1607,7 +1607,7 @@ int ath10k_coredump_submit(struct ath10k *ar) ...@@ -1607,7 +1607,7 @@ int ath10k_coredump_submit(struct ath10k *ar)
return -ENODATA; return -ENODATA;
} }
dev_coredumpv(ar->dev, dump, le32_to_cpu(dump->len), GFP_KERNEL); dev_coredumpv(ar->dev, dump, le32_to_cpu(dump->len));
return 0; return 0;
} }
......
...@@ -117,6 +117,6 @@ void wil_fw_core_dump(struct wil6210_priv *wil) ...@@ -117,6 +117,6 @@ void wil_fw_core_dump(struct wil6210_priv *wil)
/* fw_dump_data will be free in device coredump release function /* fw_dump_data will be free in device coredump release function
* after 5 min * after 5 min
*/ */
dev_coredumpv(wil_to_dev(wil), fw_dump_data, fw_dump_size, GFP_KERNEL); dev_coredumpv(wil_to_dev(wil), fw_dump_data, fw_dump_size);
wil_info(wil, "fw core dumped, size %d bytes\n", fw_dump_size); wil_info(wil, "fw core dumped, size %d bytes\n", fw_dump_size);
} }
...@@ -37,7 +37,7 @@ int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data, ...@@ -37,7 +37,7 @@ int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data,
return err; return err;
} }
dev_coredumpv(bus->dev, dump, len + ramsize, GFP_KERNEL); dev_coredumpv(bus->dev, dump, len + ramsize);
return 0; return 0;
} }
......
...@@ -2601,8 +2601,7 @@ static void iwl_fw_error_dump(struct iwl_fw_runtime *fwrt, ...@@ -2601,8 +2601,7 @@ static void iwl_fw_error_dump(struct iwl_fw_runtime *fwrt,
fw_error_dump.trans_ptr->data, fw_error_dump.trans_ptr->data,
fw_error_dump.trans_ptr->len, fw_error_dump.trans_ptr->len,
fw_error_dump.fwrt_len); fw_error_dump.fwrt_len);
dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len, dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len);
GFP_KERNEL);
} }
vfree(fw_error_dump.fwrt_ptr); vfree(fw_error_dump.fwrt_ptr);
vfree(fw_error_dump.trans_ptr); vfree(fw_error_dump.trans_ptr);
...@@ -2647,8 +2646,7 @@ static void iwl_fw_error_ini_dump(struct iwl_fw_runtime *fwrt, ...@@ -2647,8 +2646,7 @@ static void iwl_fw_error_ini_dump(struct iwl_fw_runtime *fwrt,
entry->data, entry->size, offs); entry->data, entry->size, offs);
offs += entry->size; offs += entry->size;
} }
dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len, dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len);
GFP_KERNEL);
} }
iwl_dump_ini_list_free(&dump_list); iwl_dump_ini_list_free(&dump_list);
} }
......
...@@ -1115,8 +1115,7 @@ void mwifiex_upload_device_dump(struct mwifiex_adapter *adapter) ...@@ -1115,8 +1115,7 @@ void mwifiex_upload_device_dump(struct mwifiex_adapter *adapter)
*/ */
mwifiex_dbg(adapter, MSG, mwifiex_dbg(adapter, MSG,
"== mwifiex dump information to /sys/class/devcoredump start\n"); "== mwifiex dump information to /sys/class/devcoredump start\n");
dev_coredumpv(adapter->dev, adapter->devdump_data, adapter->devdump_len, dev_coredumpv(adapter->dev, adapter->devdump_data, adapter->devdump_len);
GFP_KERNEL);
mwifiex_dbg(adapter, MSG, mwifiex_dbg(adapter, MSG,
"== mwifiex dump information to /sys/class/devcoredump end\n"); "== mwifiex dump information to /sys/class/devcoredump end\n");
......
...@@ -2421,6 +2421,5 @@ void mt7615_coredump_work(struct work_struct *work) ...@@ -2421,6 +2421,5 @@ void mt7615_coredump_work(struct work_struct *work)
dev_kfree_skb(skb); dev_kfree_skb(skb);
} }
dev_coredumpv(dev->mt76.dev, dump, MT76_CONNAC_COREDUMP_SZ, dev_coredumpv(dev->mt76.dev, dump, MT76_CONNAC_COREDUMP_SZ);
GFP_KERNEL);
} }
...@@ -1630,8 +1630,7 @@ void mt7921_coredump_work(struct work_struct *work) ...@@ -1630,8 +1630,7 @@ void mt7921_coredump_work(struct work_struct *work)
} }
if (dump) if (dump)
dev_coredumpv(dev->mt76.dev, dump, MT76_CONNAC_COREDUMP_SZ, dev_coredumpv(dev->mt76.dev, dump, MT76_CONNAC_COREDUMP_SZ);
GFP_KERNEL);
mt7921_reset(&dev->mt76); mt7921_reset(&dev->mt76);
} }
......
...@@ -414,7 +414,7 @@ static void rtw_fwcd_dump(struct rtw_dev *rtwdev) ...@@ -414,7 +414,7 @@ static void rtw_fwcd_dump(struct rtw_dev *rtwdev)
* framework. Note that a new dump will be discarded if a previous one * framework. Note that a new dump will be discarded if a previous one
* hasn't been released yet. * hasn't been released yet.
*/ */
dev_coredumpv(rtwdev->dev, desc->data, desc->size, GFP_KERNEL); dev_coredumpv(rtwdev->dev, desc->data, desc->size);
} }
static void rtw_fwcd_free(struct rtw_dev *rtwdev, bool free_self) static void rtw_fwcd_free(struct rtw_dev *rtwdev, bool free_self)
......
...@@ -127,7 +127,7 @@ static void rtw89_ser_cd_send(struct rtw89_dev *rtwdev, ...@@ -127,7 +127,7 @@ static void rtw89_ser_cd_send(struct rtw89_dev *rtwdev,
* will be discarded if a previous one hasn't been released by * will be discarded if a previous one hasn't been released by
* framework yet. * framework yet.
*/ */
dev_coredumpv(rtwdev->dev, buf, sizeof(*buf), GFP_KERNEL); dev_coredumpv(rtwdev->dev, buf, sizeof(*buf));
} }
static void rtw89_ser_cd_free(struct rtw89_dev *rtwdev, static void rtw89_ser_cd_free(struct rtw89_dev *rtwdev,
......
...@@ -597,7 +597,7 @@ static void q6v5_dump_mba_logs(struct q6v5 *qproc) ...@@ -597,7 +597,7 @@ static void q6v5_dump_mba_logs(struct q6v5 *qproc)
data = vmalloc(MBA_LOG_SIZE); data = vmalloc(MBA_LOG_SIZE);
if (data) { if (data) {
memcpy(data, mba_region, MBA_LOG_SIZE); memcpy(data, mba_region, MBA_LOG_SIZE);
dev_coredumpv(&rproc->dev, data, MBA_LOG_SIZE, GFP_KERNEL); dev_coredumpv(&rproc->dev, data, MBA_LOG_SIZE);
} }
memunmap(mba_region); memunmap(mba_region);
} }
......
...@@ -309,7 +309,7 @@ void rproc_coredump(struct rproc *rproc) ...@@ -309,7 +309,7 @@ void rproc_coredump(struct rproc *rproc)
phdr += elf_size_of_phdr(class); phdr += elf_size_of_phdr(class);
} }
if (dump_conf == RPROC_COREDUMP_ENABLED) { if (dump_conf == RPROC_COREDUMP_ENABLED) {
dev_coredumpv(&rproc->dev, data, data_size, GFP_KERNEL); dev_coredumpv(&rproc->dev, data, data_size);
return; return;
} }
...@@ -318,7 +318,7 @@ void rproc_coredump(struct rproc *rproc) ...@@ -318,7 +318,7 @@ void rproc_coredump(struct rproc *rproc)
dump_state.header = data; dump_state.header = data;
init_completion(&dump_state.dump_done); init_completion(&dump_state.dump_done);
dev_coredumpm(&rproc->dev, NULL, &dump_state, data_size, GFP_KERNEL, dev_coredumpm(&rproc->dev, NULL, &dump_state, data_size,
rproc_coredump_read, rproc_coredump_free); rproc_coredump_read, rproc_coredump_free);
/* /*
...@@ -449,7 +449,7 @@ void rproc_coredump_using_sections(struct rproc *rproc) ...@@ -449,7 +449,7 @@ void rproc_coredump_using_sections(struct rproc *rproc)
} }
if (dump_conf == RPROC_COREDUMP_ENABLED) { if (dump_conf == RPROC_COREDUMP_ENABLED) {
dev_coredumpv(&rproc->dev, data, data_size, GFP_KERNEL); dev_coredumpv(&rproc->dev, data, data_size);
return; return;
} }
...@@ -458,7 +458,7 @@ void rproc_coredump_using_sections(struct rproc *rproc) ...@@ -458,7 +458,7 @@ void rproc_coredump_using_sections(struct rproc *rproc)
dump_state.header = data; dump_state.header = data;
init_completion(&dump_state.dump_done); init_completion(&dump_state.dump_done);
dev_coredumpm(&rproc->dev, NULL, &dump_state, data_size, GFP_KERNEL, dev_coredumpm(&rproc->dev, NULL, &dump_state, data_size,
rproc_coredump_read, rproc_coredump_free); rproc_coredump_read, rproc_coredump_free);
/* Wait until the dump is read and free is called. Data is freed /* Wait until the dump is read and free is called. Data is freed
......
...@@ -162,7 +162,7 @@ struct drm_print_iterator { ...@@ -162,7 +162,7 @@ struct drm_print_iterator {
* void makecoredump(...) * void makecoredump(...)
* { * {
* ... * ...
* dev_coredumpm(dev, THIS_MODULE, data, 0, GFP_KERNEL, * dev_coredumpm(dev, THIS_MODULE, data, 0,
* coredump_read, ...) * coredump_read, ...)
* } * }
* *
......
...@@ -52,27 +52,26 @@ static inline void _devcd_free_sgtable(struct scatterlist *table) ...@@ -52,27 +52,26 @@ static inline void _devcd_free_sgtable(struct scatterlist *table)
#ifdef CONFIG_DEV_COREDUMP #ifdef CONFIG_DEV_COREDUMP
void dev_coredumpv(struct device *dev, void *data, size_t datalen, void dev_coredumpv(struct device *dev, void *data, size_t datalen);
gfp_t gfp);
void dev_coredumpm(struct device *dev, struct module *owner, void dev_coredumpm(struct device *dev, struct module *owner,
void *data, size_t datalen, gfp_t gfp, void *data, size_t datalen,
ssize_t (*read)(char *buffer, loff_t offset, size_t count, ssize_t (*read)(char *buffer, loff_t offset, size_t count,
void *data, size_t datalen), void *data, size_t datalen),
void (*free)(void *data)); void (*free)(void *data));
void dev_coredumpsg(struct device *dev, struct scatterlist *table, void dev_coredumpsg(struct device *dev, struct scatterlist *table,
size_t datalen, gfp_t gfp); size_t datalen);
#else #else
static inline void dev_coredumpv(struct device *dev, void *data, static inline void dev_coredumpv(struct device *dev, void *data,
size_t datalen, gfp_t gfp) size_t datalen)
{ {
vfree(data); vfree(data);
} }
static inline void static inline void
dev_coredumpm(struct device *dev, struct module *owner, dev_coredumpm(struct device *dev, struct module *owner,
void *data, size_t datalen, gfp_t gfp, void *data, size_t datalen,
ssize_t (*read)(char *buffer, loff_t offset, size_t count, ssize_t (*read)(char *buffer, loff_t offset, size_t count,
void *data, size_t datalen), void *data, size_t datalen),
void (*free)(void *data)) void (*free)(void *data))
...@@ -81,7 +80,7 @@ dev_coredumpm(struct device *dev, struct module *owner, ...@@ -81,7 +80,7 @@ dev_coredumpm(struct device *dev, struct module *owner,
} }
static inline void dev_coredumpsg(struct device *dev, struct scatterlist *table, static inline void dev_coredumpsg(struct device *dev, struct scatterlist *table,
size_t datalen, gfp_t gfp) size_t datalen)
{ {
_devcd_free_sgtable(table); _devcd_free_sgtable(table);
} }
......
...@@ -164,7 +164,7 @@ static int apl_coredump(struct avs_dev *adev, union avs_notify_msg *msg) ...@@ -164,7 +164,7 @@ static int apl_coredump(struct avs_dev *adev, union avs_notify_msg *msg)
} while (offset < msg->ext.coredump.stack_dump_size); } while (offset < msg->ext.coredump.stack_dump_size);
exit: exit:
dev_coredumpv(adev->dev, dump, dump_size, GFP_KERNEL); dev_coredumpv(adev->dev, dump, dump_size);
return 0; return 0;
} }
......
...@@ -88,7 +88,7 @@ static int skl_coredump(struct avs_dev *adev, union avs_notify_msg *msg) ...@@ -88,7 +88,7 @@ static int skl_coredump(struct avs_dev *adev, union avs_notify_msg *msg)
return -ENOMEM; return -ENOMEM;
memcpy_fromio(dump, avs_sram_addr(adev, AVS_FW_REGS_WINDOW), AVS_FW_REGS_SIZE); memcpy_fromio(dump, avs_sram_addr(adev, AVS_FW_REGS_WINDOW), AVS_FW_REGS_SIZE);
dev_coredumpv(adev->dev, dump, AVS_FW_REGS_SIZE, GFP_KERNEL); dev_coredumpv(adev->dev, dump, AVS_FW_REGS_SIZE);
return 0; return 0;
} }
......
...@@ -539,7 +539,7 @@ int catpt_coredump(struct catpt_dev *cdev) ...@@ -539,7 +539,7 @@ int catpt_coredump(struct catpt_dev *cdev)
pos += CATPT_DMA_REGS_SIZE; pos += CATPT_DMA_REGS_SIZE;
} }
dev_coredumpv(cdev->dev, dump, dump_size, GFP_KERNEL); dev_coredumpv(cdev->dev, dump, dump_size);
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册