mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] cfi_flash: fix NULL pointer dereference
       [not found] <1393351516-1136-1-git-send-email-philippe.retornaz@epfl.ch>
@ 2014-02-28  8:03 ` Sascha Hauer
  2014-02-28  8:07   ` Alexander Aring
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2014-02-28  8:03 UTC (permalink / raw)
  To: Philippe Rétornaz; +Cc: barebox

On Tue, Feb 25, 2014 at 07:05:16PM +0100, Philippe Rétornaz wrote:
> We need to setup the info->dev pointer before flash_get_size() since it
> might use it for dev_dbg().
> This fix a crash on boot when debug output is enabled.
> 
> Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>

Applied thanks. Sorry for the delay, this patch was buried in my
mailbox.

Sascha

> ---
>  drivers/mtd/nor/cfi_flash.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
> index 514eab5..3d3d231 100644
> --- a/drivers/mtd/nor/cfi_flash.c
> +++ b/drivers/mtd/nor/cfi_flash.c
> @@ -978,8 +978,8 @@ static int cfi_probe (struct device_d *dev)
>  	info->flash_id = FLASH_UNKNOWN;
>  	info->cmd_reset = FLASH_CMD_RESET;
>  	info->base = dev_request_mem_region(dev, 0);
> -	info->size = flash_get_size(info);
>  	info->dev = dev;
> +	info->size = flash_get_size(info);
>  
>  	if (info->flash_id == FLASH_UNKNOWN) {
>  		dev_warn(dev, "## Unknown FLASH on Bank at 0x%08x - Size = 0x%08lx = %ld MB\n",
> -- 
> 1.7.9.5
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] cfi_flash: fix NULL pointer dereference
  2014-02-28  8:03 ` [PATCH 1/1] cfi_flash: fix NULL pointer dereference Sascha Hauer
@ 2014-02-28  8:07   ` Alexander Aring
  2014-02-28  8:23     ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Aring @ 2014-02-28  8:07 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Philippe Rétornaz, barebox

I don't get this patch. Was it send with barebox mailinglist in cc?

- Alex

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] cfi_flash: fix NULL pointer dereference
  2014-02-28  8:07   ` Alexander Aring
@ 2014-02-28  8:23     ` Sascha Hauer
  2014-02-28  8:32       ` Philippe Rétornaz
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2014-02-28  8:23 UTC (permalink / raw)
  To: Alexander Aring; +Cc: Philippe Rétornaz, barebox

On Fri, Feb 28, 2014 at 09:07:47AM +0100, Alexander Aring wrote:
> I don't get this patch. Was it send with barebox mailinglist in cc?

Yes, it was. I can't find this mail in the archives though. Also the
patches adding mx31moboard from Philippe are not in the archives. Also
they are not in the moderator interface. Philippe, just to be sure: You
are subscribed and you sent the patches from the EMail address you are
subscribed with, right?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] cfi_flash: fix NULL pointer dereference
  2014-02-28  8:23     ` Sascha Hauer
@ 2014-02-28  8:32       ` Philippe Rétornaz
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Rétornaz @ 2014-02-28  8:32 UTC (permalink / raw)
  To: Sascha Hauer, Alexander Aring; +Cc: barebox

Le 28/02/2014 09:23, Sascha Hauer a écrit :
> On Fri, Feb 28, 2014 at 09:07:47AM +0100, Alexander Aring wrote:
>> I don't get this patch. Was it send with barebox mailinglist in
>> cc?
>
> Yes, it was. I can't find this mail in the archives though. Also the
>  patches adding mx31moboard from Philippe are not in the archives.
> Also they are not in the moderator interface. Philippe, just to be
> sure: You are subscribed and you sent the patches from the EMail
> address you are subscribed with, right?
>

When I submitted the first patch ( cfi_flash: fix NULL pointer
dereference) I was not subscribed. But for the addition of mx31moboard I
was.

I'm subscribed with my both email (@epfl.ch & @gmail.com). It would be
cool if the @epfl.ch address was just able to send email but not to
receive any from mailman. For now it's in "digest" mode.

Regards,

Philippe


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-28  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1393351516-1136-1-git-send-email-philippe.retornaz@epfl.ch>
2014-02-28  8:03 ` [PATCH 1/1] cfi_flash: fix NULL pointer dereference Sascha Hauer
2014-02-28  8:07   ` Alexander Aring
2014-02-28  8:23     ` Sascha Hauer
2014-02-28  8:32       ` Philippe Rétornaz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox