public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: Dave Jones <davej@redhat.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
	Jesper Juhl <jesper.juhl@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: Simple script that locks up my box with recent kernels
Date: Wed, 22 Nov 2006 10:32:36 +0000	[thread overview]
Message-ID: <45642744.2080109@draigBrady.com> (raw)
In-Reply-To: <20061122034928.GF533@redhat.com>

Dave Jones wrote:
> On Tue, Nov 21, 2006 at 07:44:45PM -0800, Linus Torvalds wrote:
> 
>  > > memset(buf, 0, SIZE);
>  > 
>  > I'm just checking that you're paying attention.
>  > 
>  > There's a reason sparse warns about the third parameter of a memset() 
>  > being zero ;)
> 
> Heh, it's amazing how commonplace that mistake is.
> Come back bzero, all is forgiven..

It's interesting to do the following on google codesearch

lang:^(c|c\+\+)$ memset\ *\(.*,\ *0\ *\);
http://tinyurl.com/y47qu4

lang:^(c|c\+\+)$ \sif\([^)]*\);
http://tinyurl.com/y4mdbl

It would be interesting to build
up a suite of these regular expressions.

Pádraig.

  reply	other threads:[~2006-11-22 10:33 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-06 23:36 Simple script that locks up my box with recent kernels Jesper Juhl
2006-10-06 23:54 ` Andrew Morton
2006-10-07  0:06   ` Jesper Juhl
2006-10-07  0:21     ` Jesper Juhl
2006-10-07  3:11 ` Linus Torvalds
2006-10-07 21:02   ` Jesper Juhl
2006-10-07 21:25     ` Linus Torvalds
2006-10-08 23:33       ` Jesper Juhl
2006-10-16 22:45         ` Jesper Juhl
2006-10-16 23:04           ` Linus Torvalds
2006-10-16 23:13             ` Jesper Juhl
2006-10-23 20:30               ` Jesper Juhl
2006-11-22  0:46                 ` Jesper Juhl
2006-11-22  2:36                   ` Linus Torvalds
2006-11-22  3:25                     ` Dave Jones
2006-11-22  3:44                       ` Linus Torvalds
2006-11-22  3:49                         ` Dave Jones
2006-11-22 10:32                           ` Pádraig Brady [this message]
2006-11-22 17:58                             ` Dave Jones
2006-11-22  8:03                     ` Jens Axboe
2006-11-22 10:55                       ` Jesper Juhl
2006-11-22 10:57                         ` Jens Axboe
2006-11-22 11:04                           ` Jesper Juhl
2006-11-22 11:07                             ` Jens Axboe
2006-11-23 23:52                               ` Jesper Juhl
2006-11-24  6:52                                 ` Jens Axboe
2006-11-24  9:41                                   ` Jesper Juhl
2006-11-24  9:46                                     ` Jens Axboe
2006-11-24  9:52                                       ` Jesper Juhl
2006-11-23 10:22                             ` Jesper Juhl
2006-11-23 23:48                           ` Jesper Juhl
2006-11-22 11:00                     ` Jesper Juhl
2006-11-24  0:50                     ` Jesper Juhl
2006-10-07  3:40 ` Grant Coady

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45642744.2080109@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=akpm@osdl.org \
    --cc=davej@redhat.com \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox