-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
realtek-poe: move blob_buf out of global scope
the `blob_buf` is only used in ubus_poe_info_cb(). Since it is also initialized in the same function, it could be reasoned that it should be a stack variable. However, placing it on the stack seems to cause segmentation faults, as observed when calling `ubus call poe info`. Presumably, this is why `blob_buf` was originally made global. To take `blob_buf` out of global scope, without casuing issues, move it to the poe context. Signed-off-by: Alexandru Gagniuc <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters