public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pcmcia: patch to fix pccard_store_cis
@ 2006-10-01 19:21 Pete Zaitcev
  2006-10-02  0:31 ` Dominik Brodowski
  0 siblings, 1 reply; 9+ messages in thread
From: Pete Zaitcev @ 2006-10-01 19:21 UTC (permalink / raw)
  To: linux-pcmcia; +Cc: linux-kernel, fabrice, zaitcev

The ``ret'' obviously cannot be zero here, because it's initialized to the
write count and not zero.

For the complete description, see:
 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=207910

Author: Fabrice Bellet <fabrice@bellet.info>
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

--- linux-2.6.17.i686/drivers/pcmcia/socket_sysfs.c	2006-06-18 03:49:35.000000000 +0200
+++ /tmp/socket_sysfs.c	2006-10-01 19:30:09.000000000 +0200
@@ -321,7 +321,7 @@
 
 	kfree(cis);
 
-	if (!ret) {
+	if (ret == count) {
 		mutex_lock(&s->skt_mutex);
 		if ((s->callback) && (s->state & SOCKET_PRESENT) &&
 		    !(s->state & SOCKET_CARDBUS)) {

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

end of thread, other threads:[~2006-11-13 22:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 19:21 pcmcia: patch to fix pccard_store_cis Pete Zaitcev
2006-10-02  0:31 ` Dominik Brodowski
2006-10-02 13:01   ` Romano Giannetti
2006-11-03 16:02     ` Dominik Brodowski
2006-11-08  9:04       ` Romano Giannetti
2006-11-13 10:12       ` Romano Giannetti
2006-11-13 21:54         ` Romano Giannetti
     [not found]       ` <1163412159.11397.11.camel@localhost>
2006-11-13 21:54         ` pcmcia: patch to fix pccard_store_cis Was: [SOLUTION/HACK/PUZZLED] pcmcia modem only works with cardmgr in recent 2.6.15 kernel Andrew Morton
2006-11-13 22:48           ` Romano Giannetti

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