diff options
| -rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0020.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c index 8c24e18db3b4..c894f8801578 100644 --- a/drivers/mtd/chips/cfi_cmdset_0020.c +++ b/drivers/mtd/chips/cfi_cmdset_0020.c | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | * | 4 | * |
| 5 | * (C) 2000 Red Hat. GPL'd | 5 | * (C) 2000 Red Hat. GPL'd |
| 6 | * | 6 | * |
| 7 | * $Id: cfi_cmdset_0020.c,v 1.17 2004/11/20 12:49:04 dwmw2 Exp $ | 7 | * $Id: cfi_cmdset_0020.c,v 1.19 2005/07/13 15:52:45 dwmw2 Exp $ |
| 8 | * | 8 | * |
| 9 | * 10/10/2000 Nicolas Pitre <nico@cam.org> | 9 | * 10/10/2000 Nicolas Pitre <nico@cam.org> |
| 10 | * - completely revamped method functions so they are aware and | 10 | * - completely revamped method functions so they are aware and |
| @@ -16,6 +16,8 @@ | |||
| 16 | * - modified Intel Command Set 0x0001 to support ST Advanced Architecture | 16 | * - modified Intel Command Set 0x0001 to support ST Advanced Architecture |
| 17 | * (command set 0x0020) | 17 | * (command set 0x0020) |
| 18 | * - added a writev function | 18 | * - added a writev function |
| 19 | * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> | ||
| 20 | * - Plugged memory leak in cfi_staa_writev(). | ||
| 19 | */ | 21 | */ |
| 20 | 22 | ||
| 21 | #include <linux/version.h> | 23 | #include <linux/version.h> |
| @@ -719,6 +721,7 @@ cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, | |||
| 719 | write_error: | 721 | write_error: |
| 720 | if (retlen) | 722 | if (retlen) |
| 721 | *retlen = totlen; | 723 | *retlen = totlen; |
| 724 | kfree(buffer); | ||
| 722 | return ret; | 725 | return ret; |
| 723 | } | 726 | } |
| 724 | 727 | ||
