Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.5
[deb_dpdk.git]
/
drivers
/
bus
/
dpaa
/
base
/
fman
/
fman.c
diff --git
a/drivers/bus/dpaa/base/fman/fman.c
b/drivers/bus/dpaa/base/fman/fman.c
index
a9c88dd
..
4403ff5
100644
(file)
--- a/
drivers/bus/dpaa/base/fman/fman.c
+++ b/
drivers/bus/dpaa/base/fman/fman.c
@@
-46,6
+46,7
@@
#include <fman.h>
#include <of.h>
#include <rte_dpaa_logs.h>
#include <fman.h>
#include <of.h>
#include <rte_dpaa_logs.h>
+#include <rte_string_fns.h>
#define QMI_PORT_REGS_OFFSET 0x400
#define QMI_PORT_REGS_OFFSET 0x400
@@
-216,7
+217,7
@@
fman_if_init(const struct device_node *dpa_node)
}
memset(__if, 0, sizeof(*__if));
INIT_LIST_HEAD(&__if->__if.bpool_list);
}
memset(__if, 0, sizeof(*__if));
INIT_LIST_HEAD(&__if->__if.bpool_list);
- str
n
cpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);
+ str
l
cpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);
__if->node_path[PATH_MAX - 1] = '\0';
/* Obtain the MAC node used by this interface except macless */
__if->node_path[PATH_MAX - 1] = '\0';
/* Obtain the MAC node used by this interface except macless */