Re: [PATCH v3] net/bnxt: fix null pointer dereference in bnxt_hwrm_port_led_cfg()

2022-10-03 Thread Ajit Khaparde
mas Monjalon > 主题: Re: [PATCH v3] net/bnxt: fix null pointer dereference in > bnxt_hwrm_port_led_cfg() > > On Tue, Aug 2, 2022 at 9:38 AM Mao YingMing wrote: > > > > For VFs, bp->leds is uninitialized, check bp->leds is > > not null before checking for bp->l

答复: [PATCH v3] net/bnxt: fix null pointer dereference in bnxt_hwrm_port_led_cfg()

2022-08-01 Thread Mao,Yingming
Thans for your review. Mao Yingming -邮件原件- 发件人: Somnath Kotur 发送时间: 2022年8月2日 12:09 收件人: Mao,Yingming 抄送: dev@dpdk.org; Ajit Khaparde ; Kalesh AP ; Thomas Monjalon 主题: Re: [PATCH v3] net/bnxt: fix null pointer dereference in bnxt_hwrm_port_led_cfg

Re: [PATCH v3] net/bnxt: fix null pointer dereference in bnxt_hwrm_port_led_cfg()

2022-08-01 Thread Somnath Kotur
On Tue, Aug 2, 2022 at 9:38 AM Mao YingMing wrote: > > For VFs, bp->leds is uninitialized, check bp->leds is > not null before checking for bp->leds->num_leds. > > segfault backtrace in trex program when use VF: > 11: bnxt_hwrm_port_led_cfg (bp=0x23ffb2140, led_on=true) > 10: bnxt_dev_led_on_op (d

[PATCH v3] net/bnxt: fix null pointer dereference in bnxt_hwrm_port_led_cfg()

2022-08-01 Thread Mao YingMing
For VFs, bp->leds is uninitialized, check bp->leds is not null before checking for bp->leds->num_leds. segfault backtrace in trex program when use VF: 11: bnxt_hwrm_port_led_cfg (bp=0x23ffb2140, led_on=true) 10: bnxt_dev_led_on_op (dev=0x22d7780 ) 9: rte_eth_led_on (port_id=0) 8: DpdkTRexPortAtt