Commit 63395b6
committed
sysctl: sysctl_binary.c Fix compilation when !CONFIG_NET
dev_get_by_index does not exist when the network stack is not
compiled in, so only include the code to follow wild card paths
when the network stack is present.
I have shuffled the code around a little to make it clear
that dev_put is called after dev_get_by_index showing that
there is no leak.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>1 parent 2fb1073 commit 63395b6
1 file changed
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
1250 | 1251 | | |
1251 | 1252 | | |
1252 | 1253 | | |
1253 | | - | |
1254 | 1254 | | |
1255 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1256 | 1260 | | |
1257 | 1261 | | |
1258 | 1262 | | |
| |||
1263 | 1267 | | |
1264 | 1268 | | |
1265 | 1269 | | |
1266 | | - | |
1267 | | - | |
| 1270 | + | |
1268 | 1271 | | |
1269 | 1272 | | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1273 | 1278 | | |
1274 | 1279 | | |
1275 | 1280 | | |
1276 | 1281 | | |
1277 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
1278 | 1285 | | |
1279 | | - | |
1280 | | - | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
1281 | 1291 | | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
| 1292 | + | |
| 1293 | + | |
1287 | 1294 | | |
1288 | | - | |
1289 | | - | |
1290 | 1295 | | |
1291 | 1296 | | |
1292 | 1297 | | |
| |||
0 commit comments