All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [KJ] =?iso-8859-1?Q?
@ 2005-04-29 21:47 Domen Puncer
  0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2005-04-29 21:47 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

Weird subject :-)

On 29/04/05 11:18 +0200, david.chosrova@libertysurf.fr wrote:
> --- linux-2.6.11.7/drivers/net/irda/ep7211_ir.c.orig
> 2005-04-27 17:41:36.000000000 +0100
> +++ linux-2.6.11.7/drivers/net/irda/ep7211_ir.c	2005-04-29

No description, no Signed-off-by:, lines wrapped.

> 10:10:07.000000000 +0100
> @@ -14,6 +14,7 @@
> 
>  #include <asm/io.h>
>  #include <asm/hardware.h>
> +#include<linux/spinlock.h>

Please put this after others linux/ includes, with a space before '<'.

>  static void ep7211_ir_open(dongle_t *self, struct qos_info
> *qos)
>  {
>  	unsigned int syscon1, flags;
> -
> -	save_flags(flags); cli();
> +	spin_lock_init(&driver_lock);
> +
> +	spin_lock_irqsave(&driver_lock,flags);

This doesn't look safe. Imagine 2 processes on SMP. (After some
browsing, this looks like some ARM architecture, so probably no
SMP; still better put this in ep7211_ir_init() or declare with
static DEFINE_SPINLOCK.)

Space after ',' missing, not just here.


	Domen

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-29 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-29 21:47 [KJ] =?iso-8859-1?Q? Domen Puncer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.