tpm/tpm-dev: fix broken style in copy_from_user
PATCH 1/1 tpm/tpm-dev: fix broken style in copy_from_user
Straighten unneeded line brake and drop useless cast to void.
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/char/tpm/tpm-dev.c +1 -2
@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file, const char __user *buf,mutex_lock (&priv->buffer_mutex); -if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }
Signature · 4 lines
2.7.4 ------------------------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): 1473621730-23125-1-git-send-email-tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Jarkko Sakkinen
Acked-byQuoted 3 lines · Tomas Winkler
Straighten unneeded line brake and drop useless cast to void.
Signed-off-by Tomas Winkler <[email protected]>
Thanks.
/Jarkko
Quoted 21 lines
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/char/tpm/tpm-dev.c +1
-2@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file, const char __user *buf,mutex_lock (&priv->buffer_mutex); -if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }Signature · 1 line
2.7.4
------------------------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jarkko,
what's the ack for?
As maintainer you usually apply and sign off or don't.
Ack is more if you are not touching the patch but still think it's good (e.g.goes through another tree.
@Thomas:thanks for your contribution, but please spellcheck your descriptions, please.
Am 11. September 2016 13:38:49 GMT-07:00, schrieb Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 39 lines · Tomas Winkler
Quoted 3 lines
Straighten unneeded line brake and drop useless cast to void.
Signed-off-by Tomas Winkler <[email protected]>Thanks.
/Jarkko
drivers/char/tpm/tpm-dev.c static ssize_t tpm_write(struct file *file, const
Quoted 9 lines
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/char/tpm/tpm-dev.c +0
-0@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file, constchar
__user*buf,Quoted 12 lines
drivers/char/tpm/tpm-dev.c +1
-2mutex_lock (&priv->buffer_mutex); -if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }Signature · 1 line
2.7.4------------------------------------------------------------------------------
_______________________________________________
tpmdd-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
Signature · 3 lines
Sent from my mobile ------------------------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): E2960FB9-598A-4289-9486-9B8AFD054E95-Mmb7MZpHnFY@public.gmane.org
Quoted 4 lines · Peter Huewe
Jarkko,
what's the ack for?
As maintainer you usually apply and sign off or don't.
Ack is more if you are not touching the patch but still think it's good (e.g.goes through another tree.
I've based my use of acked-by based on section 12 of
https://www.kernel.org/doc/Documentation/SubmittingPatches
Have I somehow misunderstood it? I add signed-off-by's before I send a pull requst even if the patch contains reviewd/acked-by by me.
/Jarkko
Quoted 27 lines
@Thomas:thanks for your contribution, but please spellcheck your descriptions, please.
Am 11. September 2016 13:38:49 GMT-07:00, schrieb Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 24 lines · Tomas Winkler
Quoted 3 lines
Straighten unneeded line brake and drop useless cast to void.
Signed-off-by Tomas Winkler <[email protected]>Thanks.
/Jarkko
drivers/char/tpm/tpm-dev.c static ssize_t tpm_write(struct file *file, const
Quoted 9 lines
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/char/tpm/tpm-dev.c +0
-0@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file, constchar
__user*buf,Quoted 3 lines
drivers/char/tpm/tpm-dev.c +0
-0mutex_lock (&priv->buffer_mutex);
Quoted 18 lines
Quoted 15 lines
Quoted 9 lines
drivers/char/tpm/tpm-dev.c +1
-2-if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }Signature · 1 line
2.7.4------------------------------------------------------------------------------
_______________________________________________
tpmdd-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-develSignature · 1 line
Sent from my mobile
------------------------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): [email protected]
Am 12. September 2016 00:56:37 GMT-07:00, schrieb Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 5 lines · Peter Huewe
Quoted 4 lines
Jarkko,
what's the ack for?
As maintainer you usually apply and sign off or don't. Ack is more if you are not touching the patch but still think it's
Quoted 8 lines
good (e.g.goes through another tree.
I've based my use of acked-by based on section 12 of
https://www.kernel.org/doc/Documentation/SubmittingPatches
Have I somehow misunderstood it? I add signed-off-by's before I send a pull requst even if the patch contains reviewd/acked-by by me.
Hi,
you usually add your signed-off while applying.
If you apply the patch you take an active role in forwarding the patch.
That's why this section applies:
"The Signed-off-by: tag indicates that the signer was involved in the development of the patch, or that he/she was in the patch's delivery path."
" If a person was not directly involved in the preparation or handling of a patch but wishes to signify and record their approval of it then they can ask to have an Acked-by: line added to the patch's changelog. "
E.g. Rob would do that for the dt bindings.
He does have a quick look at a binding and says "okay for him" by indicating the ACK.
So rule of thumb
If it goes through your tree or you are the author ->signed off If not -> ack
Reviewed-by is a bit unrelated, and content wise stronger as ack, but weaker approval wise.
Peter
Quoted 53 lines
/Jarkko
Quoted 1 line
@Thomas:thanks for your contribution, but please spellcheck your
descriptions, please.
Quoted 2 lines
Am 11. September 2016 13:38:49 GMT-07:00, schrieb Jarkko Sakkinen
<jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 9 lines
Quoted 9 lines · Tomas Winkler
Quoted 3 lines
Straighten unneeded line brake and drop useless cast to void.
Signed-off-by Tomas Winkler <[email protected]>Thanks.
Quoted 7 lines
Quoted 7 lines
/Jarkko
Review
Quoted 5 lines
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/char/tpm/tpm-dev.cQuoted 4 lines
Quoted 4 lines
drivers/char/tpm/tpm-dev.c static ssize_t tpm_write(struct file *file,
Quoted 4 lines
index
912ad30be585..9782df406345100644drivers/char/tpm/tpm-dev.c +0
-0@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file,const
Quoted 23 lines
Quoted 4 lines
char
__user*buf,Quoted 3 lines
drivers/char/tpm/tpm-dev.c +0
-0mutex_lock (&priv->buffer_mutex);Quoted 10 lines
Quoted 9 lines
drivers/char/tpm/tpm-dev.c +1
-2-if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }Signature · 1 line
2.7.4------------------------------------------------------------------------------
Quoted 4 lines
_______________________________________________
tpmdd-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-develSignature · 1 line
Sent from my mobile
Signature · 8 lines
Sent from my mobile ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev
A message that is not in the archive (sent off-list or not yet received): 3113B445-E63D-45C3-8B6A-DFDB1B5DDC7D-Mmb7MZpHnFY@public.gmane.org
Quoted 12 lines · Peter Huewe
Am 12. September 2016 00:56:37 GMT-07:00, schrieb Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 9 lines · Peter Huewe
Quoted 4 lines
Jarkko,
what's the ack for?
As maintainer you usually apply and sign off or don't. Ack is more if you are not touching the patch but still think it'sgood (e.g.goes through another tree.
I've based my use of acked-by based on section 12 of
Quoted 8 lines
Quoted 4 lines
https://www.kernel.org/doc/Documentation/SubmittingPatches
Have I somehow misunderstood it? I add signed-off-by's before I send a pull requst even if the patch contains reviewd/acked-by by me.
Hi,
you usually add your signed-off while applying.
If you apply the patch you take an active role in forwarding the patch.
All the applied commits have my signed-off-by so we should be good with that.
Quoted 9 lines
That's why this section applies:
"The Signed-off-by: tag indicates that the signer was involved in the development of the patch, or that he/she was in the patch's delivery path."
" If a person was not directly involved in the preparation or handling of a patch but wishes to signify and record their approval of it then they can ask to have an Acked-by: line added to the patch's changelog. "
Quoted 7 lines
E.g. Rob would do that for the dt bindings.
He does have a quick look at a binding and says "okay for him" by indicating the ACK.So rule of thumb
If it goes through your tree or you are the author ->signed off If not -> ack
So Acked-by and Signed-off-by are mutually exclusive?
Quoted 5 lines
Reviewed-by is a bit unrelated, and content wise stronger as ack, but weaker approval wise.
Peter
/Jarkko
Quoted 47 lines
Quoted 47 lines
/Jarkko
Quoted 1 line
@Thomas:thanks for your contribution, but please spellcheck your
descriptions, please.
Quoted 2 lines
Am 11. September 2016 13:38:49 GMT-07:00, schrieb Jarkko Sakkinen
<jarkko.sakkinen-VuQAYsv1563Yd54FQh9/[email protected]>:
Quoted 9 lines
Quoted 9 lines · Tomas Winkler
Quoted 3 lines
Straighten unneeded line brake and drop useless cast to void.
Signed-off-by Tomas Winkler <[email protected]>Thanks.
Quoted 7 lines
Quoted 7 lines
/Jarkko
Review
Quoted 5 lines
--- drivers/char/tpm/tpm-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/char/tpm/tpm-dev.cQuoted 4 lines
Quoted 4 lines
drivers/char/tpm/tpm-dev.c static ssize_t tpm_write(struct file *file,
Quoted 4 lines
index
912ad30be585..9782df406345100644drivers/char/tpm/tpm-dev.c +0
-0@@ -130,8 +130,7 @@ static ssize_t tpm_write(struct file *file,const
Quoted 15 lines
Quoted 14 lines
char
__user*buf,Quoted 12 lines
drivers/char/tpm/tpm-dev.c +1
-2mutex_lock (&priv->buffer_mutex); -if (copy_from_user - (priv->data_buffer, (void __user *) buf, in_size)) { +if (copy_from_user (priv->data_buffer, buf, in_size)) {mutex_unlock (&priv->buffer_mutex);return -EFAULT ; }Signature · 1 line
2.7.4
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
------------------------------------------------------------------------------
Quoted 4 lines
_______________________________________________
tpmdd-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-develSignature · 1 line
Sent from my mobileSignature · 1 line
Sent from my mobile
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev