Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98940
b: refs/heads/master
c: feda4f2
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Jun 24, 2008
1 parent 2d29d48 commit e3f4b60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 8b5332f6994e34f2b400b25975760da709bbaa63
refs/heads/master: feda4f2c190f4efc101857935db0917ff3e4e23d
4 changes: 2 additions & 2 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename)
{
struct pcmcia_socket *s = dev->socket;
const struct firmware *fw;
char path[20];
char path[FIRMWARE_NAME_MAX];
int ret = -ENOMEM;
int no_funcs;
int old_funcs;
Expand All @@ -862,7 +862,7 @@ static int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename)

ds_dbg(1, "trying to load CIS file %s\n", filename);

if (strlen(filename) > 14) {
if (strlen(filename) > (FIRMWARE_NAME_MAX - 1)) {
printk(KERN_WARNING "pcmcia: CIS filename is too long [%s]\n",
filename);
return -EINVAL;
Expand Down

0 comments on commit e3f4b60

Please sign in to comment.