Analysis of a possible explanation of the positron anomaly in terms of dark matter