Commit fbd741f
ASoC: cs35l56: fix usages of device_get_named_child_node()
The documentation for device_get_named_child_node() mentions this
important point:
"
The caller is responsible for calling fwnode_handle_put() on the
returned fwnode pointer.
"
Add fwnode_handle_put() to avoid leaked references.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent e8a6a5a commit fbd741f
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| 1363 | + | |
1363 | 1364 | | |
1364 | 1365 | | |
1365 | 1366 | | |
1366 | 1367 | | |
1367 | 1368 | | |
1368 | 1369 | | |
1369 | 1370 | | |
| 1371 | + | |
1370 | 1372 | | |
1371 | 1373 | | |
1372 | 1374 | | |
| |||
1381 | 1383 | | |
1382 | 1384 | | |
1383 | 1385 | | |
| 1386 | + | |
1384 | 1387 | | |
1385 | 1388 | | |
1386 | 1389 | | |
1387 | 1390 | | |
1388 | 1391 | | |
1389 | 1392 | | |
1390 | 1393 | | |
1391 | | - | |
| 1394 | + | |
| 1395 | + | |
1392 | 1396 | | |
| 1397 | + | |
1393 | 1398 | | |
1394 | 1399 | | |
1395 | 1400 | | |
1396 | 1401 | | |
1397 | 1402 | | |
1398 | 1403 | | |
| 1404 | + | |
1399 | 1405 | | |
1400 | 1406 | | |
1401 | 1407 | | |
| |||
1404 | 1410 | | |
1405 | 1411 | | |
1406 | 1412 | | |
| 1413 | + | |
1407 | 1414 | | |
1408 | 1415 | | |
1409 | | - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1410 | 1419 | | |
1411 | 1420 | | |
1412 | 1421 | | |
| |||
0 commit comments