From: Jiri Slaby <jirislaby@gmail.com>
To: pwarudkar@aol.com
Cc: Jiri Kosina <jikos@jikos.cz>,
Andrew Morton <akpm@linux-foundation.org>,
dsk6@pitt.edu, linux-kernel@vger.kernel.org
Subject: Re: Sleep during spinlock in TPM driver
Date: Mon, 23 Apr 2007 14:42:51 +0200 [thread overview]
Message-ID: <462CA9CB.7050006@gmail.com> (raw)
In-Reply-To: <alpine.DEB.0.82.0704230801230.6240@paragw-desktop>
Parag Warudkar napsal(a):
> On Mon, 23 Apr 2007, Jiri Kosina wrote:
>
>> On Sun, 22 Apr 2007, Parag Warudkar wrote:
>>
>>> @@ -1097,8 +1097,13 @@
>>>
>>> /* Driver specific per-device data */
>>> chip = kzalloc(sizeof(*chip), GFP_KERNEL);
>>> - if (chip == NULL)
>>> + devname = kmalloc(DEVNAME_SIZE, GFP_KERNEL);
>>> + + if (chip == NULL || devname == NULL) {
>>
>> Hi,
>>
>> this line looks bogus to me.
>>
>
> Hi - Yep, thanks for catching. Really not sure how that extra + got in
> there - I diffed the exact same file this morning and it isn't there -
> new diff attached.
[...]
> @@ -1097,8 +1097,13 @@
>
> /* Driver specific per-device data */
> chip = kzalloc(sizeof(*chip), GFP_KERNEL);
> - if (chip == NULL)
> + devname = kmalloc(DEVNAME_SIZE, GFP_KERNEL);
> + + if (chip == NULL || devname == NULL) {
I see this here too, but there is no extra '+' here:
http://lkml.org/lkml/2007/4/22/172 and here
http://lkml.org/lkml/2007/4/23/125
not even in the source of this message, weird... (using thunderbird 2.0rc1)
regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
next prev parent reply other threads:[~2007-04-23 12:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-22 19:06 Sleep during spinlock in TPM driver Parag Warudkar
2007-04-23 7:42 ` Jiri Kosina
2007-04-23 12:04 ` Parag Warudkar
2007-04-23 12:14 ` Parag Warudkar
2007-04-26 1:33 ` Andrew Morton
2007-04-23 12:42 ` Jiri Slaby [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-20 22:11 David Kyle
2007-04-21 22:50 ` Andrew Morton
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=462CA9CB.7050006@gmail.com \
--to=jirislaby@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dsk6@pitt.edu \
--cc=jikos@jikos.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=pwarudkar@aol.com \
/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