Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151250
b: refs/heads/master
c: ed62ace
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent b084ebb commit ecbcb3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 56aec8d874e222f68baffbda33322c9be4cbf2ea
refs/heads/master: ed62acec209fa7e104b9d7871c1e5307fab83bf0
12 changes: 1 addition & 11 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ static int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename)
{
struct pcmcia_socket *s = dev->socket;
const struct firmware *fw;
char path[FIRMWARE_NAME_MAX];
int ret = -ENOMEM;
int no_funcs;
int old_funcs;
Expand All @@ -839,16 +838,7 @@ static int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename)

ds_dev_dbg(1, &dev->dev, "trying to load CIS file %s\n", filename);

if (strlen(filename) > (FIRMWARE_NAME_MAX - 1)) {
dev_printk(KERN_WARNING, &dev->dev,
"pcmcia: CIS filename is too long [%s]\n",
filename);
return -EINVAL;
}

snprintf(path, sizeof(path), "%s", filename);

if (request_firmware(&fw, path, &dev->dev) == 0) {
if (request_firmware(&fw, filename, &dev->dev) == 0) {
if (fw->size >= CISTPL_MAX_CIS_SIZE) {
ret = -EINVAL;
dev_printk(KERN_ERR, &dev->dev,
Expand Down

0 comments on commit ecbcb3e

Please sign in to comment.