lkml.org 
[lkml]   [2006]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectpcmcia: patch to fix pccard_store_cis
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)) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-10-01 21:25    [W:1.255 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site