git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/ring: add custom element size performance tests
[dpdk.git]
/
drivers
/
crypto
/
ccp
/
ccp_pci.c
diff --git
a/drivers/crypto/ccp/ccp_pci.c
b/drivers/crypto/ccp/ccp_pci.c
index
59152ca
..
1702a09
100644
(file)
--- a/
drivers/crypto/ccp/ccp_pci.c
+++ b/
drivers/crypto/ccp/ccp_pci.c
@@
-31,12
+31,15
@@
ccp_check_pci_uio_module(void)
while (uio_module_names[i] != NULL) {
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (!strncmp(buf, uio_module_names[i],
while (uio_module_names[i] != NULL) {
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (!strncmp(buf, uio_module_names[i],
- strlen(uio_module_names[i])))
+ strlen(uio_module_names[i]))) {
+ fclose(fp);
return i;
return i;
+ }
}
i++;
rewind(fp);
}
}
i++;
rewind(fp);
}
+ fclose(fp);
printf("Insert igb_uio or uio_pci_generic kernel module(s)");
return -1;/* uio not inserted */
}
printf("Insert igb_uio or uio_pci_generic kernel module(s)");
return -1;/* uio not inserted */
}