From: Andrew Morton <akpm@osdl.org>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: juhl-lkml@dif.dk, linux-kernel@vger.kernel.org,
eokerson@quicknet.net, joe@perches.com
Subject: Re: [PATCH] kfree cleanups (remove redundant NULL checks) in drivers/telephony/ (actually ixj.c only)
Date: Fri, 6 May 2005 19:02:12 -0700 [thread overview]
Message-ID: <20050506190212.0d6a5300.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0505070345430.2384@dragon.hyggekrogen.localhost>
This patch adds behavioural changes:
- if (j->read_buffer) {
- kfree(j->read_buffer);
- j->read_buffer = NULL;
- j->read_buffer_size = 0;
- }
+ j->read_buffer = NULL;
+ j->read_buffer_size = 0;
Now we'll zero ->read_buffer_size even if ->read_buffer was already NULL.
It's hard to believe that this could cause any problems, but please check
that.
next prev parent reply other threads:[~2005-05-07 2:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-07 0:58 Jesper Juhl
2005-05-07 1:54 ` Jesper Juhl
2005-05-07 2:02 ` Andrew Morton [this message]
2005-05-07 2:09 ` Jesper Juhl
2005-05-08 22:03 ` Jesper Juhl
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=20050506190212.0d6a5300.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=eokerson@quicknet.net \
--cc=joe@perches.com \
--cc=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®