Dubios pointer casting with put_user()
Valdis Kl=?utf-8?Q?=c4=93?=tnieks
valdis.kletnieks at vt.edu
Sun Jul 19 18:50:47 EDT 2020
On Sun, 19 Jul 2020 14:15:36 +0200, Richard Sailer said:
> > If that were true, you wouldn't need to pass the 'amount' variable....
> >
> Hmm, that would make no sense to me. arg is a pointer to user space
> memory, put_user would still need the value to copy to that memory.
-ENOCAFFEINE. :)
I was thinking copy_(to/from)_user, not get/put.
I will now depart for the grocery store and obtain a supply of caffeine :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200719/61c6514a/attachment.sig>
More information about the Kernelnewbies
mailing list