[PATCH 2/2] net/sunrpc/auth.c: move NULL check in rpcauth_invalcred() before first dereference

2013-05-02 Thread Radmila Kompová
Detected by cppcheck. Signed-off-by: Kamil Dudka --- net/sunrpc/auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index ed2fdd2..cba5529 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -767,11 +767,12 @@ void rpcauth_

[PATCH 1/2] drivers/iommu/amd_iommu.c: fix resource leak in iommu_init_device()

2013-05-02 Thread Radmila Kompová
Detected by cppcheck. Signed-off-by: Kamil Dudka --- drivers/iommu/amd_iommu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 8301837..5523ffb 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.