repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*new* min_t() casting that truncates the values
[smatch.git]
/
validation
/
sm_equiv4.c
blob
a4f2876bbfb8914204f15f644ddb3ad72e2e4d44
1
#include
"check_debug.h"
2
3
void
*
ioremap
();
4
void
iounmap
(
void
*);
5
6
int
*
a
, *
b
, *
c
;
7
int
func
(
void
)
8
{
9
a
=
ioremap
();
10
b
=
ioremap
();
11
c
=
a
;
12
iounmap
(
c
);
13
return
-
1
;
14
}
15
/*
16
* check-name: smatch equivalent variables #4
17
* check-command: smatch -p=kernel -I.. sm_equiv4.c
18
*
19
* check-output-start
20
sm_equiv4.c +13 func(6) warn: 'b' was not released on error
21
* check-output-end
22
*/