Stathol wrote:
It's hard to say, being unfamiliar with the code. What is the declaration for show_pool_brief_get_bag()?
In the first version of the code, you're passing it the address of pool_info[loop_cnt] (which is the same as pool_info + (loop_cnt * sizeof(pool_info[0])), if you think about it.) in the second, you're passing it the value pointed to by pool_info[loop_cnt]. What is the function expecting?
Sorry for the late reply. show_pool_brief_get_bag() takes in the same types of argument that are passed to it. It compiles fine. It expects this type: ip_show_pool_brief *.I tried wiping out the function so that it simply returns upon entering, but it would still crash. It turned out the problem is not in show_pool_brief_get_bag().
I'm just going to consider the cause of this problem unsolveable
. My fix worked though.