Skip to content

Commit

Permalink
fix the im data problem for pnet
Browse files Browse the repository at this point in the history
  • Loading branch information
kurisaW authored and Rbb666 committed Dec 9, 2024
1 parent 57ba528 commit 4b580fc
Showing 1 changed file with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,9 @@ static int pf_cmwrr_write (
p_ar->arep);
}

if (
(pf_cmdev_get_subslot_full (
net,
p_write_request->api,
p_write_request->slot_number,
p_write_request->subslot_number,
&subslot) == 0) &&
(((subslot->ownsm_state != PF_OWNSM_STATE_IOC) &&
(subslot->ownsm_state != PF_OWNSM_STATE_IOS)) ||
(subslot->owner != p_ar)))
{
p_result->pnio_status.error_code = PNET_ERROR_CODE_WRITE;
p_result->pnio_status.error_decode = PNET_ERROR_DECODE_PNIORW;
p_result->pnio_status.error_code_1 = PNET_ERROR_CODE_1_ACC_ACCESS_DENIED;
p_result->pnio_status.error_code_2 = 0;
}
else if (p_write_request->index <= PF_IDX_USER_MAX)
// see: https://github.com/rtlabs-com/p-net/issues/557
(void)subslot;
if (p_write_request->index <= PF_IDX_USER_MAX)
{
/* User defined indexes */
ret = pf_fspm_cm_write_ind (
Expand Down

0 comments on commit 4b580fc

Please sign in to comment.