]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Jul 2018 14:12:33 +0000 (22:12 +0800)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:48:44 +0000 (19:48 -0600)
commitd87828c8a4775902c0363dc88fb0d7f24b99642d
tree1fb5129bb387f5a8d999a3ebfab32b513a2e2b9c
parent5d3d626dbbea662f8d1f72504e872cdfa904f428
wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc

BugLink: https://bugs.launchpad.net/bugs/1836117
[ Upstream commit fd800f646402c0f85547166b59ca065175928b7b ]

qe_muram_alloc return a unsigned long integer,which should not
compared with zero. check it using IS_ERR_VALUE() to fix this.

Fixes: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/wan/fsl_ucc_hdlc.c