Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95239
b: refs/heads/master
c: 8cd6451
h: refs/heads/master
i:
  95237: f285903
  95235: 9ea75fa
  95231: 9386f16
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 5ed79ac commit 2ac1c6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb100b6ea7bf8a95e52b90cc0dc0ea5744a0a40a
refs/heads/master: 8cd64518a3d166a21f5c69ac7860b3add0369dd0
14 changes: 6 additions & 8 deletions trunk/drivers/char/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,15 +813,13 @@ static int isicom_setup_port(struct isi_port *port)
return 0;
if (!port->xmit_buf) {
/* Relies on BKL */
void *xmit_buf = (void *)get_zeroed_page(GFP_KERNEL);

if (xmit_buf == NULL)
unsigned long page = get_zeroed_page(GFP_KERNEL);
if (page == 0)
return -ENOMEM;
if (port->xmit_buf) {
free_page((unsigned long)xmit_buf);
return -ERESTARTSYS;
}
port->xmit_buf = xmit_buf;
if (port->xmit_buf)
free_page(page);
else
port->xmit_buf = (unsigned char *) page;
}

spin_lock_irqsave(&card->card_lock, flags);
Expand Down

0 comments on commit 2ac1c6c

Please sign in to comment.