patch-2.4.0-test5 linux/drivers/char/stallion.c
Next file: linux/drivers/char/synclink.c
Previous file: linux/drivers/char/sh-sci.h
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Tue Jul 18 15:58:54 2000
- Orig file:
v2.4.0-test4/linux/drivers/char/stallion.c
- Orig date:
Mon Jul 10 16:47:22 2000
diff -u --recursive --new-file v2.4.0-test4/linux/drivers/char/stallion.c linux/drivers/char/stallion.c
@@ -812,7 +812,7 @@
"errno=%d\n", -i);
if (stl_tmpwritebuf != (char *) NULL)
- kfree_s(stl_tmpwritebuf, STL_TXBUFSIZE);
+ kfree(stl_tmpwritebuf);
for (i = 0; (i < stl_nrbrds); i++) {
if ((brdp = stl_brds[i]) == (stlbrd_t *) NULL)
@@ -828,17 +828,17 @@
if (portp->tty != (struct tty_struct *) NULL)
stl_hangup(portp->tty);
if (portp->tx.buf != (char *) NULL)
- kfree_s(portp->tx.buf, STL_TXBUFSIZE);
- kfree_s(portp, sizeof(stlport_t));
+ kfree(portp->tx.buf);
+ kfree(portp);
}
- kfree_s(panelp, sizeof(stlpanel_t));
+ kfree(panelp);
}
release_region(brdp->ioaddr1, brdp->iosize1);
if (brdp->iosize2 > 0)
release_region(brdp->ioaddr2, brdp->iosize2);
- kfree_s(brdp, sizeof(stlbrd_t));
+ kfree(brdp);
stl_brds[i] = (stlbrd_t *) NULL;
}
@@ -1241,7 +1241,7 @@
stl_flushbuffer(tty);
portp->istate = 0;
if (portp->tx.buf != (char *) NULL) {
- kfree_s(portp->tx.buf, STL_TXBUFSIZE);
+ kfree(portp->tx.buf);
portp->tx.buf = (char *) NULL;
portp->tx.head = (char *) NULL;
portp->tx.tail = (char *) NULL;
@@ -1830,7 +1830,7 @@
portp->istate = 0;
set_bit(TTY_IO_ERROR, &tty->flags);
if (portp->tx.buf != (char *) NULL) {
- kfree_s(portp->tx.buf, STL_TXBUFSIZE);
+ kfree(portp->tx.buf);
portp->tx.buf = (char *) NULL;
portp->tx.head = (char *) NULL;
portp->tx.tail = (char *) NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)