RE: [EXT] [PATCH] compressdev: fix size of socket ID in device data struct

2022-03-04 Thread Akhil Goyal
> Socket ID is used and interpreted as integer, one of the possible > values for socket id is -1 (SOCKET_ID_ANY). > here socket_id is defined as unsigned 8 bit integer, so when putting > -1, it is interpreted as 255, which causes allocation errors when > trying to allocate from socket_id (255). >

[PATCH] compressdev: fix size of socket ID in device data struct

2022-03-01 Thread Raja Zidane
Socket ID is used and interpreted as integer, one of the possible values for socket id is -1 (SOCKET_ID_ANY). here socket_id is defined as unsigned 8 bit integer, so when putting -1, it is interpreted as 255, which causes allocation errors when trying to allocate from socket_id (255). change socke