dmaengine: idxd: convert sprintf() to sysfs_emit() for all usages
authorDave Jiang <dave.jiang@intel.com>
Tue, 20 Apr 2021 18:46:40 +0000 (11:46 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 23 Apr 2021 17:38:45 +0000 (23:08 +0530)
commit8241571fac9eeb7f3424ad343369eaa411919da3
treeeeaad0ddfc41f5db50c6fe92dbee0d9f6925e189
parenteb15e7154fbfa3e61c777704b2ff28eb3a0d4796
dmaengine: idxd: convert sprintf() to sysfs_emit() for all usages

Convert sprintf() to sysfs_emit() in order to check buffer overrun on sysfs
outputs.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161894440044.3202472.13926639619695319753.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c