summaryrefslogtreecommitdiff
path: root/net/x25/x25_subr.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-11-23 19:58:06 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2009-11-23 22:05:41 (GMT)
commite33761e6f23881de9f3ee77cc2204ab2e26f3d9a (patch)
treee4d1c56fed629085b3387ebc512e8b2a441e393f /net/x25/x25_subr.c
parent3ba6018aa314559c5867138a8173b068268a70db (diff)
downloadlinux-fsl-qoriq-e33761e6f23881de9f3ee77cc2204ab2e26f3d9a.tar.xz
ssb: Fix range check in sprom write
The range check in the sprom image parser hex2sprom() is broken. One sprom word is 4 hex characters. This fixes the check and also adds much better sanity checks to the code. We better make sure the image is OK by doing some sanity checks to avoid bricking the device by accident. Signed-off-by: Michael Buesch <mb@bu3sch.de> Cc: stable@kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/x25/x25_subr.c')
0 files changed, 0 insertions, 0 deletions