]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not destroy input buffer of the OF_getencprop() function on error
authorZbigniew Bodek <zbb@FreeBSD.org>
Mon, 25 Jan 2016 14:42:44 +0000 (14:42 +0000)
committerZbigniew Bodek <zbb@FreeBSD.org>
Mon, 25 Jan 2016 14:42:44 +0000 (14:42 +0000)
commit073fae869b339067790355ec383c5eab7247d158
treea094de659142c54848db20505e232aeb0fa396dc
parentd36f48ddc2587ff797ef04ae6b6a9d40ee347787
Do not destroy input buffer of the OF_getencprop() function on error

Currently when the OF_getprop() function returns with error,
the caller (OF_getencprop()) still changes the buffer endiannes.
This may destroy the default value passed in the input buffer if
used on a Little Endian platform.

Reviewed by:   mmel
Submitted by:  Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Cavium
sys/dev/ofw/openfirm.c