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; 15+ 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] 15+ messages in thread
* Re: pcmcia: patch to fix pccard_store_cis
@ 2006-11-13 23:40 Daniel Ritz
  2006-11-14  9:33 ` Romano Giannetti
  0 siblings, 1 reply; 15+ messages in thread
From: Daniel Ritz @ 2006-11-13 23:40 UTC (permalink / raw)
  To: Romano Giannetti; +Cc: Andrew Morton, Dominik Brodowski, linux-kernel

please also try this patch on top:
	http://zeus2.kernel.org/git/?p=linux/kernel/git/brodo/pcmcia-fixes-2.6.git;a=commitdiff;h=e6248ff596dd15bce0be4d780c60f173389b11c3

(after you have "[PATCH] pcmcia: start over after CIS override"
	http://zeus2.kernel.org/git/?p=linux/kernel/git/brodo/pcmcia-fixes-2.6.git;a=commitdiff;h=f755c48254ce743a3d4c1fd6b136366c018ee5b2
 applied)

if that doesn't work, i'll have a look at it on the weekend.

rgds
-daniel

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

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

Thread overview: 15+ 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
  -- strict thread matches above, loose matches on Subject: below --
2006-11-13 23:40 pcmcia: patch to fix pccard_store_cis Daniel Ritz
2006-11-14  9:33 ` Romano Giannetti
2006-11-14 10:29   ` Romano Giannetti
2006-11-14 21:50     ` Daniel Ritz
2006-11-14 21:53       ` Dominik Brodowski
2006-11-14 22:41         ` Andrew Morton

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