diff options
author | Jianhua Xie <Jianhua.Xie@freescale.com> | 2015-01-06 07:33:50 (GMT) |
---|---|---|
committer | Jianhua Xie <Jianhua.Xie@freescale.com> | 2015-03-09 06:55:07 (GMT) |
commit | 4697720655090e7bead833250a43292912dd597a (patch) | |
tree | c206f7bff029125ee6c4bae4762bd78e4a473daf /drivers | |
parent | 7880feaf5783d9c33091b3e3843ed2969e17055c (diff) | |
download | linux-fsl-qoriq-4697720655090e7bead833250a43292912dd597a.tar.xz |
bonding: fix OHFRIENDNAMSIZ issue
Add 1 byte for store '\0' for future sprintf calling.
Change-Id: I7911c22c0ce54144ef4e0acb43302d92e1379dcf
Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/28617
Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bonding/hw_distribution.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/hw_distribution.h b/drivers/net/bonding/hw_distribution.h index b004a8a..da99df7 100644 --- a/drivers/net/bonding/hw_distribution.h +++ b/drivers/net/bonding/hw_distribution.h @@ -48,7 +48,7 @@ #include "fm_cc.h" #include "crc64.h" -#define OHFRIENDNAMSIZ 10 /* fman0-oh@1, ... fman1-oh@6 */ +#define OHFRIENDNAMSIZ 11 /* fman0-oh@1, ... fman1-oh@6 */ #define OHNODENAMSIZ 24 /* /fsl,dpaa/dpa-fman0-oh@1 */ #define BOND_OH_SUCCESS 0 #define BOND_OH_ERROR -1 |