Re: [PATCH v2] net: qrtr: fix usage of idr in port assignment to socket

2020-08-17 Thread Jakub Kicinski
On Mon, 17 Aug 2020 07:39:01 + Necip Fazil Yildiran wrote: > From: Necip Fazil Yildiran > > Passing large uint32 sockaddr_qrtr.port numbers for port allocation > triggers a warning within idr_alloc() since the port number is cast > to int, and thus interpreted as a negative number. This leads

[PATCH v2] net: qrtr: fix usage of idr in port assignment to socket

2020-08-17 Thread Necip Fazil Yildiran
From: Necip Fazil Yildiran Passing large uint32 sockaddr_qrtr.port numbers for port allocation triggers a warning within idr_alloc() since the port number is cast to int, and thus interpreted as a negative number. This leads to the rejection of such valid port numbers in qrtr_port_assign() as idr