Repository navigation
Commit 6c21180
devlink: Fix some error codes
These paths don't set the error codes. It's especially important in
devlink_nl_region_notify_build() where it leads to a NULL dereference in
the caller.
Fixes: 544e7c3 ("net: devlink: Add support for port regions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201026080059.GA1628785@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 6daa1da commit 6c21180
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4213 | 4213 | | |
4214 | 4214 | | |
4215 | 4215 | | |
4216 | | - | |
4217 | | - | |
4218 | | - | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
4219 | 4220 | | |
| 4221 | + | |
4220 | 4222 | | |
4221 | 4223 | | |
4222 | 4224 | | |
| |||
4265 | 4267 | | |
4266 | 4268 | | |
4267 | 4269 | | |
4268 | | - | |
4269 | | - | |
4270 | | - | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
4271 | 4274 | | |
| 4275 | + | |
4272 | 4276 | | |
4273 | 4277 | | |
4274 | 4278 | | |
| |||
4962 | 4966 | | |
4963 | 4967 | | |
4964 | 4968 | | |
4965 | | - | |
4966 | | - | |
4967 | | - | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
| 4972 | + | |
4968 | 4973 | | |
| 4974 | + | |
4969 | 4975 | | |
4970 | 4976 | | |
4971 | 4977 | | |
| |||
0 commit comments