Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

devcoredump: cleanup some comments

Correct a spello, remove an extra space between words, and fix
one kernel-doc warning:

drivers/base/devcoredump.c:292: warning: No description found for return value of 'devcd_read_from_sgtable'

Fixes: 522566376a3f ("devcoredump: add scatterlist support")
Fixes: 01daccf74832 ("devcoredump : Serialize devcd_del work")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Rafael J. Wysocki <rafael@kernel.org>
Cc: Aviya Erenfeld <aviya.erenfeld@intel.com>
Cc: Mukesh Ojha <quic_mojha@quicinc.com>
Link: https://lore.kernel.org/r/20241130023554.538820-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
2a8d6abd 7685ad5f

+4 -2
+4 -2
drivers/base/devcoredump.c
··· 186 186 * mutex_lock(&devcd->mutex); 187 187 * 188 188 * 189 - * In the above diagram, It looks like disabled_store() would be racing with parallely 189 + * In the above diagram, it looks like disabled_store() would be racing with parallelly 190 190 * running devcd_del() and result in memory abort while acquiring devcd->mutex which 191 - * is called after kfree of devcd memory after dropping its last reference with 191 + * is called after kfree of devcd memory after dropping its last reference with 192 192 * put_device(). However, this will not happens as fn(dev, data) runs 193 193 * with its own reference to device via klist_node so it is not its last reference. 194 194 * so, above situation would not occur. ··· 285 285 * @offset: start copy from @offset@ bytes from the head of the data 286 286 * in the given scatterlist 287 287 * @data_len: the length of the data in the sg_table 288 + * 289 + * Returns: the number of bytes copied 288 290 */ 289 291 static ssize_t devcd_read_from_sgtable(char *buffer, loff_t offset, 290 292 size_t buf_len, void *data,