From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: Fix in eeprom.c
Date: Thu, 19 May 2005 06:24:50 +0000 [thread overview]
Message-ID: <20040403102243.27c4deba.khali@linux-fr.org> (raw)
In-Reply-To: <20040329193435.7d9a587d.khali@linux-fr.org>
> > OK... Here we go. I've converted all drivers in our CVS repository
> > to a new model where we do the two kmallocs separately. I didn't
> > commit it yet because it's a very important change (47 chip drivers
> > affected). So I'd appreciate code reviews and tests before I apply
> > it.
> >
> > The patch is here:
> > http://jdelvare.net1.nerim.net/sensors/lm_sensors-CVS-separate-mallocs.diff
> > It applies on latest CVS.
> >
> > I tested only the eeprom and lm90 drivers so far. Seems to work, but
> > the changes are error-prone so what it "seems" is hardly enough to
> > be sure it's correct.
>
> At a quick glance it looks sane.
Well, I doubt that a quick glance is enough to ensure that the patch
didn't break anything. I'm confident that the memory allocation and
"normal" freeing are correct. What I consider error-prone is the error
handling in detect functions. In several cases I had to rename labels.
It's hard to be sure that all error paths are absolutely correct,
although I did my best not to screw anything up.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
next prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 Fix in eeprom.c Jean Delvare
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` AW: " Ralf Rosch
2005-05-19 6:24 ` Greg KH
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Greg KH
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare [this message]
2005-05-19 6:24 ` AW: " Ralf Rosch
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` AW: " Ralf Rosch
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=20040403102243.27c4deba.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@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 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.