Repository navigation
Commit c49a944
devlink: Enhance policy to validate port type input value
Use range checking facility of nla_policy to validate port type
attribute input value is valid or not.
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent ba356c9 commit c49a944
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
815 | | - | |
816 | 814 | | |
817 | 815 | | |
818 | 816 | | |
| |||
7055 | 7053 | | |
7056 | 7054 | | |
7057 | 7055 | | |
7058 | | - | |
| 7056 | + | |
| 7057 | + | |
7059 | 7058 | | |
7060 | 7059 | | |
7061 | 7060 | | |
| |||
0 commit comments