patch-2.3.39 linux/drivers/pcmcia/pci_socket.c

Next file: linux/drivers/pcmcia/pci_socket.h
Previous file: linux/drivers/pcmcia/ds.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/drivers/pcmcia/pci_socket.c linux/drivers/pcmcia/pci_socket.c
@@ -166,8 +166,10 @@
 {
 	pci_socket_t *socket = nr + pci_socket_array;
 
+	memset(socket, 0, sizeof(*socket));
 	socket->dev = dev;
 	socket->op = ops;
+	init_waitqueue_head(&socket->wait);
 	return socket->op->open(socket);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)