Re: [PATCH v3] thunderbolt: Add DP out resource when DP tunnel is discovered.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 04, 2022 at 12:34:09PM +0530, Sanjay R Mehta wrote:
> >>  			tunnel = tb_tunnel_discover_dp(tb, port, alloc_hopids);
> > 
> > Here tunnel can be NULL...
> > 
> >> +			tb_dp_resource_available_discovered(tb, tunnel->dst_port);
> > 
> > ... so this will crash and burn.
> 
> Thanks. Agree, I will add check here and resend the patch.

Please don't add the check here but move this to tb_start() as I
suggested.



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux