Actions
Bug #3351
openHandling error cases of callbacks in envgen for more than two structures
Start date:
08/21/2012
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
If some callback returns error than current generated code will goto module_exit label thus skiping all required callback calls for the other structures.
For example (drivers/net/ethernet/calxeda/xgmac.ko):
1. structure 1: successful xgmac_probe (== 0)
2. structure 2: error case of xgmac_open (< 0)
3. goto module_exit skipping xgmac_remove from structure 1
Updated by Vadim Mutilin over 12 years ago
- Assignee changed from Ilja Zakharov to Ilya Shchepetkov
fix available in branch fix_negative_result
checked on drivers/net/ethernet/calxeda/xgmac.ko with rule 32_7
Updated by Ilya Shchepetkov over 11 years ago
This fix does not work for some modules. Example:
/43_1a/drivers/gpu/drm/gma500/psb_intel_lvds.c.prepared:1401:4: error: unknown type name 'label__drm_connector_helper_funcs'
label__drm_connector_helper_funcs psb_intel_lvds_connector_helper_funcs_6: { /*reset state of the current structure*/ } break;
Updated by Evgeny Novikov about 10 years ago
- Assignee changed from Ilya Shchepetkov to Vadim Mutilin
Actions