]> code.ossystems Code Review - openembedded-core.git/commit
rpcbind: Stop freeing a static pointer
authorJackie Huang <jackie.huang@windriver.com>
Wed, 10 Jan 2018 01:53:06 +0000 (09:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Jan 2018 09:11:27 +0000 (09:11 +0000)
commit1d78875de924d794130c86b27ed516a1df40a59d
treed067926b2d3323365efb1514ecd686cabd6b9c53
parentb09202848d713af4eef179a443745b413542eaf0
rpcbind: Stop freeing a static pointer

commit 7ea36ee introduced a svc_freeargs() call
that ended up freeing static pointer.

It turns out the allocations for the rmt_args
is not necessary . The xdr routines (xdr_bytes) will
handle the memory management and the largest
possible message size is UDPMSGSIZE (due to UDP only)
which is smaller than RPC_BUF_MAX

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/rpcbind/rpcbind/rpcbproc_callit_com-Stop-freeing-a-static-pointer.patch [new file with mode: 0644]
meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb