Skip to content

Commit cffb2b7

Browse files
committed
Merge tag 'kgdb-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux
Pull kgdb update from Daniel Thompson: "Only a single patch this cycle. Fix an obvious mistake with the kdb memory accessors. It was a stupid mistake (to/from backwards) but it has been there for a long time since many architectures tolerated it with surprisingly good grace" * tag 'kgdb-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux: kdb: Fix the putarea helper function
2 parents 023f3fe + c1cb814 commit cffb2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/debug/kdb/kdb_support.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int kdb_getarea_size(void *res, unsigned long addr, size_t size)
291291
*/
292292
int kdb_putarea_size(unsigned long addr, void *res, size_t size)
293293
{
294-
int ret = copy_from_kernel_nofault((char *)addr, (char *)res, size);
294+
int ret = copy_to_kernel_nofault((char *)addr, (char *)res, size);
295295
if (ret) {
296296
if (!KDB_STATE(SUPPRESS)) {
297297
kdb_func_printf("Bad address 0x%lx\n", addr);

0 commit comments

Comments
 (0)