repo.or.cz
/
smatch.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Make check_locking check both spinlocks and semaphores.
2009-02-02
Dan Ca
r
pent
e
r
Make check_
l
ocking
c
heck b
o
th
s
pinl
o
c
k
s and s
e
m
a
phores
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Dan Carpe
n
te
r
Add a new function slist_
h
as_state()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Dan Carpenter
If th
e
re i
s
an i++ the
n
the value of 'i' is undefined
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Dan Carpenter
Add a new ch
e
ck_locking script that checks spinloc
k
s
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-02-02
Da
n
Carpenter
Save
t
he possibl
e
states instead of just
mer
g
ing them
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-01-28
Dan Carpenter
Ignore emacs ga
r
b
a
ge
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2009-01-28
D
an Carpen
t
er
Merge b
r
anc
h
'
m
ast
e
r' into pools5
commit
|
commitdiff
|
tree
2009-01-16
D
an Carp
e
nter
We
c
ould
save some memory by
n
ot alloc
a
ting new memor
y
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-12-21
Dan Carpen
t
e
r
Add a commen
t
s
ho
w
i
n
g
where the tests a
r
e
s
upposed
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
D
an
C
arp
e
nter
T
his is left over from October a
s
p
art of the impli
e
d
.
.
.
commit
|
commitdiff
|
tree
2008-12-21
Dan
C
arpenter
Add get
_
possible_states()
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-12-21
Dan Carpenter
Stuf
f
l
eft ov
e
r fr
o
m
Octob
e
r
.
Im
p
lie
d
pools
w
ork
.
commit
|
commitdiff
|
tree
2008-10-19
Dan Ca
r
penter
W
e
could sav
e
some memory
by not all
o
cating new memory
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-18
D
an Carpenter
Fix m
e
mo
r
y leak
.
Add
more
co
m
ments
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carp
e
n
t
er
Add a merge hook
.
Handle the si
t
uations like:
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpenter
strcmp(
)
does
n
't a
c
cept NULL arguments
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpenter
r
e
name two
functions
:
g
e
t_va
r
i
able_from_expr_simple
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Car
p
enter
ge
t
_variabl
e
_from_expr(
)
uses a s
t
a
t
ic buffer and yo
u
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-17
Dan Carpenter
Creat
e
a
c
heck_template
.
c
e
xample s
c
r
i
pt that looks
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carpente
r
Make g
e
t
_all_state
s
(
) not se
g
f
ault every
t
ime
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Carpenter
Fix get_value() to r
e
tu
r
n
negati
v
e
values
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Dan Ca
r
p
e
n
ter
We
o
n
ly ever pa
s
s
o
n
e p
a
rameter in
t
o get_value()
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
Da
n
Carpenter
Fi
x
get_all_states() to match th
e
fun
c
tio
n
de
f
i
nition
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-15
D
a
n C
a
rpenter
Remove a
d
d_state() and
s
tate
_
defined()
d
ef
i
nitions
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
Dan Carpenter
C
l
ean up
.
F
i
x
leak
.
M
y
prob
l
em is
that I don'
t
und
e
rstand
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
D
an Carpenter
I
n
i
t
ial c
o
m
m
i
t of the "im
p
lie
d
s
tate pool
s
" stuff
.
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-14
D
an C
a
rpenter
Doh
.
We haven't been using smatch
_
extra for a while
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-13
D
a
n
Carpenter
Get rid of path_history
.
It's never going to be u
s
ed
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-13
Dan Car
p
enter
Make goto_stack stati
c
.
commit
|
commitdiff
|
tree
2008-10-13
D
an
C
arpenter
Speed up me
r
ge_s
l
is
t
now that
t
he
s
list
s
are or
d
e
red
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-11
Da
n
Carp
e
nter
Insert st
u
ff on
t
o list
s
in a s
o
rted order
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-11
D
an C
a
r
penter
D
e
lete an
unused funct
i
on merge_state_s
t
a
c
k()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-08
Dan Carpenter
f
ix: if
(*foo) { (*foo)-
>
bar; }
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-07
D
a
n Carpenter
kmalloc() and friends
d
o
n't always return a non-null
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-06
Dan Carpenter
T
he checks
f
rom here got
m
e
rged i
n
to che
c
k_n
u
ll_deref
.
c
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-04
Dan Carpent
e
r
Move the
s
tuff from ch
e
ck_
d
e
r
efed_params
.
c i
n
to check_
n
ull_d
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-10-04
D
a
n
C
arp
e
nter
Fix
b
ug in or_
s
l
i
s
t_st
a
ck(
)
.
i
f (a && b)
w
asn
'
t being
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-30
Dan
Ca
r
penter
A
d
d
a hook at the
e
nd
o
f a fil
e
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
D
an Carp
e
nter
Fo
r
go
t
another
strip_expr() call
.
.
.
:/
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
D
a
n Car
p
enter
Handle assignm
e
ent
s
inside conditions b
e
tte
r
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-28
Dan Carpenter
Only print something for a-
>
f
o
o and
not a
.
foo
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-25
D
an Carpenter
Ig
n
ore array
declarations
.
Th
o
se can't be N
U
LL obviously
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-23
Dan Ca
r
pente
r
Make
cur_slist static
.
I
t
's only
used in sma
t
c
h_sta
t
es
.
c
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
Dan Carpenter
White s
p
ace changes
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
Dan Carpenter
U
se me
r
ge_
s
list() instead
o
f tryi
n
g t
o
handle it yoursel
f
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-22
Dan Carpent
e
r
_
_
p
rocess
_
con
t
inues() is suppos
e
d to be ba
s
i
cally the
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
Dan Carpente
r
New smatch_ignore
.
c
f
ile
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
D
an
Car
p
e
n
ter
(
fo
o
) =
1 is t
h
e same as foo
= 1
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-21
Da
n
Carpenter
Generalize stip_casts()
.
It's n
o
w
ca
l
led s
t
rip_expr
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan Carpenter
I
gno
r
e casts
.
foo((int *
)
&bar) is the same a
s
foo
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
D
a
n
Carpen
t
er
C
rea
t
ed show_state()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan Car
p
e
nter
Ignore stuff like foo
.
bar
.
We only c
a
re about foo
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-20
Dan Ca
r
pe
n
t
er
W
hat happens b
e
fore is t
h
at parame
t
ers
would
g
et assign
e
d
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
Da
n
Carpenter
Missed a crashing bug in the int => s
t
r
uct
conver
s
ion
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpent
e
r
I can't believe I was doing stacks
w
ro
n
g this whol
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-19
Dan Carpenter
Chang
e
d smatc
h
st
a
te from
b
eing an int to being pointer
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan Ca
r
penter
I
w
a
n
t
to reuse the name sm
a
t
c
h_state
.
The
c
u
rrent
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan Carpenter
Redo the null p
a
th thi
n
g
.
So lon
g
as there is o
n
e
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-17
Dan Carpenter
Clean
up
.
Com
p
licated is just a b
o
ol
e
an
.
Set
i
t to
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-01
Dan Carpenter
Merge branc
h
'devel'
commit
|
commitdiff
|
tree
2008-09-01
Dan
C
arpent
e
r
Save the p
r
e condi
t
ions inside th
e
conditions so t
h
at
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-09-01
Dan
C
a
rpenter
The main change here was to completely re
w
rite h
o
w
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-21
D
a
n C
a
rpenter
Break
t
h
i
n
gs
o
u
t
int
o
f
u
n
c
tio
n
s
a
bit
.
Cle
a
n ups
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-21
Dan Carpen
t
er
Handle while and for loops slightl
y
bette
r
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-18
Dan Carpent
e
r
I
r
emoved nul
l
ify_path
(
)
earlier
b
ut
t
hat wa
s
a mistake
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpenter
I don't t
h
in
k
the special_kernel
_
m
acros() funct
i
on
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n Car
p
enter
Ad
d
a function to do a strcmp() wi
t
h
a symbol name
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpente
r
Remove everythi
n
g to do
w
ith path_id's
.
I couldn
'
t
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan
Car
p
e
n
ter
Replace the variable __
n
egate with
t
he f
u
nct
i
on __negate()
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n
Ca
r
pe
n
ter
S
mall clean up
.
Move the passing the
w
h
o
le
c
ondition
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpente
r
Crap
.
I meant to merge
this earl
i
er
w
hen
I divided
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan Carpente
r
A
dd a comment
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
Dan
C
arpenter
M
ove
d
all the logic
f
or handling co
n
ditions into a
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n Carpenter
Oop
s
.
I
guess I de
l
eted
the wrong list
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-17
D
a
n
Carpenter
D
o
n't pass
t
he c
o
ntents of sizeof()
t
o the clie
n
t
.
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan C
a
rpenter
I
m
p
rove
how the debug inf
o
for merging states gets
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan Carpen
t
er
The m
a
in thing
is t
o
h
a
n
d
le zero compar
i
so
n
s
b
et
t
er
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan
C
arpenter
Remove unne
e
ded code
.
T
h
i
s
st
u
ff is handled i
n
smatch_fl
o
w
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-16
Dan Ca
r
pen
t
er
We n
e
ed to
be
able to break down
(
foo !
=
0
)
for BUG_ON
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carp
e
nter
Identify
fo
r
(;;) type loops as forever
l
o
o
ps
.
This
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpenter
Add
su
p
por
t
f
o
r BUG_ON(
)
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
D
an
Ca
r
p
e
nter
What I've seen is stuff lik
e
this:
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpenter
Anything that we don'
t
handle is o
b
v
i
ously complicated
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
D
a
n Ca
r
pe
n
ter
M
erge branch 'devel'
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpen
t
er
Add a com
m
ent to get_vari
a
ble_from_expr_simple()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan
Carpente
r
Add a c
o
mment to get_
v
ariable_from_expr
_
simple()
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan
C
arp
e
nter
The nullify_path() he
r
e is a bu
g
.
It over-writes
a
l
l
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
D
a
n Carpenter
_
_print_cur_slist() i
s
a u
s
e
f
ul fu
n
ction for deb
u
gging
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-15
Dan Carpenter
I
f
you have something li
k
e
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-13
Dan Ca
r
pent
e
r
Update the line numbers fo
r
e
a
ch statement
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-13
Dan
C
arpen
t
er
Change
the merge
rules
for c
u
st
o
m merge script
s
so
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-13
Dan Carp
e
nter
Mo
v
e
S
M_
D
EBUG to a header so e
v
eryone can u
s
e
it
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-13
D
a
n
Carpenter
Add a cus
t
om
m
e
rge
fu
n
ctio
n
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-11
Dan
Carpent
e
r
Update the line number
at the very start of th
e
f
u
nction
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-10
Dan Carpenter
Change
t
h
e
debu
g
output a b
i
t
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-09
Dan Carpen
t
er
Add
a
--debug option
.
It has to
be the f
i
rs
t
option
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-07
Dan C
a
rpen
t
er
Ma
k
e s
u
re the variable name is NUL
L
termi
n
ated otherwise
.
.
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-07
Dan Carpenter
Small clean ups
.
No cha
n
ge
in
behavior
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-06
Dan Carpenter
Th
i
s is
a
n o
f
f by one
e
rror
r
eally
.
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree
2008-08-05
D
a
n
Car
p
e
n
ter
The sp
a
rse_initialize() fu
n
ction now takes a
f
i
lel
i
s
t
Signed-off-by: Dan Carpenter <
error27@gmail.com
>
commit
|
commitdiff
|
tree